Skip to content
Unverified Commit aefca74d authored by Nikita Popov's avatar Nikita Popov Committed by GitHub
Browse files

[DomTree] Store ReverseChildren as indices (NFC) (#73505)

Store the ReverseChildren using node indices instead of node pointers.
This avoids some more hash table lookups.

I've also increased the size of the SmallVector from 2 to 4. As the
indices are half as large as the pointers (on 64bit) this keeps memory
usage the same as before. I've found the larger SmallVector to perform a
bit better.
parent 4cf4c520
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment