Optimize remove action apply with early iteration exit #424
Labels
binding/rust
Issues for the Rust crate
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Description
Use Case
Right now, we use
Iterator::retain
to remove files from active file list when applying remove actions from the transaction log:delta-rs/rust/src/delta.rs
Line 1484 in 0a05cb4
This can be further optimized by performing an early exit of the iteration when we reach the file that needs to be removed. There is no point going through the remaining of the file list and compare paths since file paths should be unique.
Related Issue(s)
The text was updated successfully, but these errors were encountered: