Skip to content

large Find & Replace memory leak #38927

@kclonts

Description

@kclonts

Summary

Find & Replace on 1 million occurrences works, but when finished still has memory usage at over 3.2GB (and though nothing crashed, my computer was barely responsive)

open a large csv file, for example 200k rows & ~500MiB and lots of " instead of "" for quoting. search & replace via zed for " with ""

Being slow is fine (though it could certainly be much faster. Maybe over some size, stream changes to disk and write back?), it did manage to accomplish the task.

However; the expectation after execution should see memory fall to pre search & replace

Zed Version and System Specs

Zed: v0.205.5 (Zed)
OS: macOS 26.0
Memory: 16 GiB
Architecture: aarch64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions