atom-archive / xray

An experimental next-generation Electron-based text editor
MIT License
8.48k stars 235 forks source link

Report also the full path when retrieving entries #148

Closed as-cii closed 5 years ago

as-cii commented 5 years ago

Fixes #146

This introduces an extra allocation for each reported entry in memo_js, but it removes an O(depth * log n) scan per entry while also making it more convenient to use for clients. We were already maintaining the path in the cursor, so this change was pretty straightforward.

/cc: @joshaber @nathansobo

as-cii commented 5 years ago

Published as v0.1.8

joshaber commented 5 years ago

💖