refactoring(perf): reduce memory allocations
Summarize the changes
- refactoring(perf): reduce memory allocations
- Implement an improved version of PostOrder tree traversal that puts nodes into the result vector only if they apply the filter.
- Avoid string allocation caused by
ok_or
instead of theok_or_else
. - Remove dead code.
Ensure that
-
New code is covered by unit and integration tests. -
Related issues would be automatically closed with gitlab's closing pattern (Closes #1, #2
). -
Public modules are documented (check the rendered version withcargo doc --open
). -
(if PEST grammar is changed) EBNF grammar reflects these changes (check the result with railroad diagram generator.
Next steps
- Update sbroad submodule in picodata/picodata.
- (if EBNF grammar is changed) create a follow-up issue in picodata/docs.
Edited by Denis Smirnov