-
Notifications
You must be signed in to change notification settings - Fork 614
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Currently we maintain a `#files` `Map` alongside our tree-structured data. With the previous diffs in this stack, this is now strictly redundant, and only used for more optimised serialisation, and "optimising" lookups when given a normal path exactly matching a map key. However, when the map is large these hash table lookups become expensive, often having a net-negative performance impact. The next diff prioves a performance improvement over this stack for all use cases, despite removing `#files`. This diff removes `#files` and all its uses, temporarily replacing serialisation with an equivalent tree traversal, before we switch to serialising the tree directly in the next diff. Changelog: Internal Reviewed By: motiz88 Differential Revision: D46687190 fbshipit-source-id: b143f49693bd822f56615a3f5e7373fa12a63725
- Loading branch information
1 parent
ca024d3
commit 9b9711c
Showing
1 changed file
with
16 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters