lweitzendorf opened a new pull request, #3206: URL: https://github.com/apache/jackrabbit-oak/pull/3206
https://issues.apache.org/jira/browse/OAK-12451 ## Summary `ListRecord.getEntry(int)` went through a bucket even for single-level lists (`bucketSize == 1`), allocating a throwaway one-element `ListRecord` per call. This is the hot path for reading a node's property records. `getEntries(int, int, List)` already has a `bucketSize == 1` branch; this adds the same branch to `getEntry`, reading the record ID directly. ## Benchmark (JMH 1.37, JDK 23) | | ns/op | B/op | |---|---|---| | before | 1.33 | 24 | | after | 0.38 | ~0 | ## Tests `RecordTest#testManyPropertiesRoundTrip` covers single-level and multi-level property lists (1, 2, 255, 256, 300 and 1,000 properties). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
