Nicolapps opened a new pull request, #1733: URL: https://github.com/apache/jackrabbit-oak/pull/1733
Closes OAK-11089: > The `Segment#estimateMemoryUsage` currently takes into account the number of record numbers and referenced segment IDs in the segment in order to provide the total size estimate. > This can be in issue when using implementations of `RecordNumbers`/`SegmentReferences` for which determining this total count is expensive. To improve this, we should allow `RecordNumbers`/`SegmentReferences` to provide themselves an estimate. By default, this estimation would be computed in the same way as we currently do, which makes this change backwards-compatible. This PR also adds new unit tests for the new methods. -- 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]
