shenek / streamson

Memory efficient handling of large JSON data.
MIT License
4 stars 0 forks source link

handler list wrapper #172

Closed shenek closed 3 years ago

shenek commented 3 years ago

currently a lot of API calls uses simple Vec for storing a list of handler.

This may not be efficient in some case: Chaining of output has to be done directly inside strategy and is not really that simple. Some handlers won't work well when chained. E.g. I want to store original values in a file (using file handler and perform some convert operation). File handler by default doesn't return any output. Which is good, because it can be a bit faster.

Basically there can be two kinds of handlers. Consumers and convertors. While consumers would be read only handlers. The converters would chain.

shenek commented 3 years ago

related to #162