t-rex-tileserver / t-rex

t-rex is a vector tile server specialized on publishing MVT tiles from your own data
https://t-rex.tileserver.ch/
MIT License
545 stars 68 forks source link

Update gdal to 0.8.0 #247

Closed gerdos82 closed 3 years ago

gerdos82 commented 3 years ago

We encountered a memory leak during the usage of t-rex. It turns out the memory leak is located in the gdal dependency and fixed in version 0.8.0. See pull request: https://github.com/georust/gdal/pull/172. This pull request updates the gdal library from version 0.7 to version 0.8.0.

There are some breaking changes in gdal 0.8.0 which we had to overcome. This is my first experience with Rust and some of my solutions might not be the right way to do thinks in Rust.

I tested t-rex with heaptrack and the memory leak seems to be fixed with the upgrade to 0.8.0.

pka commented 3 years ago

Merged it with minor modifications. Thanks a lot for your contribution!