Skip to content
Snippets Groups Projects
Commit fe234087 authored by Yorhel's avatar Yorhel
Browse files

scan.zig: Revamp output API, reduce buffering a bit, re-add UI

New output API takes over (most of) the buffering responsibilites from
the scanning code, simplifying that code and allowing for a few minor
optimizations, such as not buffering at all when scanning into RAM and
buffering directly into JSON strings when exporting.

This is mostly yak shaving, hopefully allowing for further performance
improvements to be implemented later. The new API could also be extended
to support parallel scanning of disjoint trees, in case current approach
isn't working out too well.

Also re-added the progress UI and improved propagating read errors.
A visible side effect of the new API is that the progress UI now
displays the most recent directory being scanned rather than individual
files. Not a big loss, I hope?
parent c27dca1f
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment