mapbox/tilelive-mapnik — pull request #84 by mojodna (2014-07-10 06:21:06+00:00)
Title: Add ?poolSize, falling back to UV_THREADPOOL_SIZE

...further falling back to the number of cores reported.

Without this in place, setting `UV_THREADPOOL_SIZE` to anything larger than the number of cores reported is ineffectual. For most cases, matching the pool size to libuv's threadpool size makes sense, as the ratio of maps to render calls is typically 1:1. When it's not (if additional map instances (potentially through multiple `tilelive-mapnik` instances), `poolSize` can be provided as an argument when loading.