simd-lite / simd-json-derive

high performance Serialize and Deserialize derives
Apache License 2.0
30 stars 7 forks source link

Tape storage re-use #79

Open JosiahWhite opened 1 week ago

JosiahWhite commented 1 week ago

Is it possible to reuse the storage that was allocated for the Tape Vec? Based on my digging it doesn't look to be possible in the current state.

If I am right about this not being possible at the moment, It feels like it isn't supported due to the tape type in this package being Peekable<IntoIter<>> but this looks like it could be solved by using a Peekable<Drain<>>?

Let me know if I am on the right track with this...

Licenser commented 1 week ago

That sounds reasonable, I like the idea:) definitely worth a try