[ 
https://issues.apache.org/jira/browse/OAK-11089?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17880147#comment-17880147
 ] 

Nicolas Ettlin commented on OAK-11089:
--------------------------------------

I have the code changes ready for this, I’m waiting for my previous PRs to be 
merged to avoid conflicts

> Allow SegmentReferences/RecordNumbers to provide their memory estimates
> -----------------------------------------------------------------------
>
>                 Key: OAK-11089
>                 URL: https://issues.apache.org/jira/browse/OAK-11089
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: segment-tar
>    Affects Versions: 1.68.0
>            Reporter: Nicolas Ettlin
>            Priority: Minor
>
> 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 message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to