Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hgmanifest: don't overallocate when loading manifests
Summary: We are using the upperbound of `<[u8]>::split`'s iterator as the value for `with_capacity`, however this is incredibly pessimistic, and as a result we overallocate. Let's just make an initial pass and count the actual number. Reviewed By: RajivTS Differential Revision: D49951367 fbshipit-source-id: c3ce6fa0d4125f2cac26c9ea017a0992f9291397
- Loading branch information