[Tile-serving] [openstreetmap/osm2pgsql] Using LuaJIT to speed up lua code (#801)
mmd
notifications at github.com
Thu Feb 7 22:01:15 UTC 2019
> I can do that if someone tells me how.
Thanks a lot, that would be really helpful! On Ubuntu 18.04, it's only a matter of installing LuaJIT libraries and adding another parameter to `cmake` to turn on LuaJIT. Everything else should work out of the box as is.
### Install luajit5.1 dev library
```
sudo apt install libluajit-5.1-dev
```
### cmake with LUAJIT enabled
(from within osm2pgsql/build directory)
```
cmake -D WITH_LUAJIT=ON ..
```
### make
```
make -j7
```
### Verify build
Reported version number should include LuaJIT in there
```
~/osm2pgsql/build$ ./osm2pgsql --version
osm2pgsql version 0.96.0 (64 bit id space)
Compiled using the following library versions:
Libosmium 2.15.0
Lua 5.1.4 (LuaJIT 2.1.0-beta3)
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/801#issuecomment-461608717
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20190207/ca6875ff/attachment.html>
More information about the Tile-serving
mailing list