MiSawa / xq

Pure rust implementation of jq
MIT License
318 stars 18 forks source link

Rework on data structure #94

Open MiSawa opened 2 years ago

MiSawa commented 2 years ago

About objects, I guess that

If my guess was right, it'd probably make sense to use copy-on-write array-map (i.e. Vec<(Key, Value)>) (+ perhaps lazily create Trie<Key, EntryIndex>). Or maybe persistent version of Vec and Trie instead. Maybe Vec<Option<(Key, Value)>> to support fast deletion.