Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Query performance: compute hashCode just-in-time
For queries that output a lot of data to stdout, computing Event hashes turns out to be on the critical path as it's done eagerly on packets that are 4 KB or larger, but then never used. This does not use locking, so multiple threads attempting to get the hash code at the same time can race, and also see h != 0 on the first read, and then h == 0 on the second. Therefore, we need to use this construction, which makes the race benign. PiperOrigin-RevId: 257472502
- Loading branch information