You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is analagous to geo-data/node-mapserv#5 with the difference that the free_callback would wrap apr_pool_destroy() in void MapCache::GetRequestAfter(uv_work_t *req).
Also, when calling apr_pool_create() in Handle<Value> MapCache::GetAsync(const Arguments& args) the pool should probably be created from MapCache::global_pool instead of cache->config->pool as the latter is destroyed when a MapCache instance is garbage collected: this could conceivably happen before the Buffer object is collected.
The text was updated successfully, but these errors were encountered:
This fixes issue #3 with benchmarks showing a slight performance
boost. A side effect is that the memory pool allocated for the
mapcache response is now cleaned up during the V8 garbage collection
cycle instead of at the end of each request as was previously the
case.
Fixed in 7077bd8. A side effect is that the memory pool allocated for the mapcache response is now cleaned up during the V8 garbage collection cycle instead of at the end of each request as was previously the case.
This is analagous to geo-data/node-mapserv#5 with the difference that the
free_callback
would wrapapr_pool_destroy()
invoid MapCache::GetRequestAfter(uv_work_t *req)
.Also, when calling
apr_pool_create()
inHandle<Value> MapCache::GetAsync(const Arguments& args)
the pool should probably be created fromMapCache::global_pool
instead ofcache->config->pool
as the latter is destroyed when aMapCache
instance is garbage collected: this could conceivably happen before theBuffer
object is collected.The text was updated successfully, but these errors were encountered: