Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serialize tree structure in file map cache #1006

Closed
wants to merge 10 commits into from

Conversation

robhogan
Copy link
Contributor

Summary:
Serialise metro-file-map's TreeFS by cloning the tree, instead of converting to and from a flat Map.

  • Cache fileSystemData is now fully cross-platform (it contains no path separators).
  • Serialised data is now a closer match with the internal representation. The new structure is as fast to write, faster to read, and smaller.

Changelog:

 - **[Performance]**: Improved startup speed via a new file map cache format.

Differential Revision: D46598820

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Jun 16, 2023
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D46598820

robhogan and others added 10 commits June 24, 2023 11:19
Differential Revision: D45446791

fbshipit-source-id: 61de2b40a7c8e4fd9f65c1cb69fa8367b7ec4bcc
Differential Revision: https://internalfb.com/D46495960

fbshipit-source-id: b5922a6fc8e22e7763bcb33d6de0b7d26ea83d77
…leData`

Differential Revision: https://internalfb.com/D46515321

fbshipit-source-id: 0e9b77e238733ae477f12eb921c7f3eae9dc0bf1
Differential Revision: D45446644

fbshipit-source-id: 1d5b8aa542c81624a96d84476b78b62f2a5debe2
Differential Revision: https://internalfb.com/D46261693

fbshipit-source-id: 9e0b93f3a096ff14aec947590df0c59510cd9ca6
Differential Revision: https://internalfb.com/D46682954

fbshipit-source-id: a29ced630e00695e970fc83c770333f204ad1d80
Differential Revision: D46767544

fbshipit-source-id: e7643ed1e11cf6b811a7f5b88493b0e2e9a5507a
Differential Revision: D46802785

fbshipit-source-id: 42e9b73c19296af5729a5a3aa09faf2449335d63
Differential Revision: D46687190

fbshipit-source-id: 8f80558509c86c256b3ca4261338d6d43b830e6d
Summary:
Pull Request resolved: facebook#1006

Serialise `metro-file-map`'s `TreeFS` by cloning the tree, instead of converting to and from a flat `Map`.

 - Cache `fileSystemData` is now fully cross-platform (it contains no path separators).
 - Serialised data is now a closer match with the internal representation. The new structure is as fast to write, faster to read, and smaller.

Changelog:
```
 - **[Performance]**: Improved startup speed via a new file map cache format.
```

Reviewed By: motiz88

Differential Revision: D46598820

fbshipit-source-id: 40c0022a23b639fb81374356fb9a40ca6ad10f20
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D46598820

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 166477e.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants