node-mapnik
node-mapnik copied to clipboard
WIP: Chunked image encoding
An attempt to implement https://github.com/mapnik/node-mapnik/issues/793.
Encoding runs on a separate thread, encoded chunks are stored into a queue and yielded into the main thread.
See added unit tests.
Thinking about this again, would this make more sense to design something similar to node streams? https://nodejs.org/api/stream.html#stream_class_stream_readable. This could enable more generic IO systems to be built from this interface perhaps?