mapbox/tilelive-mapnik — Issue #28: remove map.clear() in pool.destroy()
Author: springmeyer
Created: 2012-03-03 17:58:35+00:00
State: open

This `map.clear()` forcefully requests that mapnik delete the layers and styles inside a mapnik map. This usage is a throwback to when mapnik did not cache references to memory mapped shapefiles leading quickly, particularly on osx, to the hitting of `ulimit`: too many open files.

We should remove this call. i doubt it ever worked for the purpose at the time and it is unnecessary now as the styles and layers will get properly released once the actual `mapnik::Map` is released.