noctarius / borabora

borabora is a CBOR (cbor.io) parser supporting graph queries and lazy decoding of stream elements
Apache License 2.0
13 stars 5 forks source link

Keeping offsets internally when parsing once #1

Open noctarius opened 8 years ago

noctarius commented 8 years ago

Add a feature to store and remember offsets internally, when activated. That would speed up further requests to the same object and makes skipping of huge indefinite length objects way faster.

noctarius commented 8 years ago

Could also be implemented as a query optimizer, grouping similar query blocks and evaluating it only once, storing the actual offset result.