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

Michael McCandless commented on LUCENE-6239:
--------------------------------------------

+1 to stop using Unsafe and switch to dynamic hotspot bean check instead, or 
even a simpler/naive heuristic.

If we have places in Lucene where estimating pointer size as 8 bytes when it 
was really 4 bytes in fact makes a practical difference (do we have big 
Object[] anywhere) then that's bad: most of Lucene's RAM heavy structures are 
also "compact" (not using so many pointers)?

> Remove RAMUsageEstimator Unsafe calls
> -------------------------------------
>
>                 Key: LUCENE-6239
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6239
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>
> This is unnecessary risk. We should remove this stuff, it is not needed here. 
> We are a search engine, not a ram calculator.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to