# Remove the problematic data field from the snapshot \(\#62685\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/f4199ae04c41eda02b65b869b301c90c97c77ca4)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: f4199ae04c41eda02b65b869b301c90c97c77ca4

Requested commit: f4199ae04c41eda02b65b869b301c90c97c77ca4

Commit: f4199ae04c41eda02b65b869b301c90c97c77ca4

Tree: cd458ad9698b746f1a8239605aed06fde230111c

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Remove the problematic data field from the snapshot (#62685)

Follow-up to https://github.com/zed-industries/zed/pull/62658

The problematic field is not needed at all in the snapshot, as can be
constructed before starting the scanner — moreover, the field had
accumulated more and more paths between rescans, leaking memory.

Now, we spend more time traversing the entire tree between rescans, but
that happens for rescans only which should be relatively rare?

Release Notes:

- N/A
```

## Parents

- [939d2d700038639cdfe3aa37481eaef14653825f](https://git.cafe/gitcafe/zed/commit/939d2d700038639cdfe3aa37481eaef14653825f?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/f4199ae04c41eda02b65b869b301c90c97c77ca4?format=markdown)
