Confusing method names to get the size of objects

2012-06-08 Thread Adrien Grand
Hi, Lucene and Solr have a few classes that expose the size of their instances, but with different method names. There are at least ramBytesUsed (packed ints), sizeInBytes (FST, RamDirectory) and memSize (Solr DocSets) that provide an estimation of the memory used in bytes. The confusing thing is

Re: Confusing method names to get the size of objects

2012-06-08 Thread Michael McCandless
+1 to standardize on two names. It is confusing now! Mike McCandless http://blog.mikemccandless.com On Fri, Jun 8, 2012 at 6:20 AM, Adrien Grand jpou...@gmail.com wrote: Hi, Lucene and Solr have a few classes that expose the size of their instances, but with different method names. There

Re: Confusing method names to get the size of objects

2012-06-08 Thread Adrien Grand
On Fri, Jun 8, 2012 at 2:12 PM, Michael McCandless luc...@mikemccandless.com wrote: +1 to standardize on two names.  It is confusing now! Thanks Mike for your feedback, I created LUCENE-4121 [1] to address this issue. [1] https://issues.apache.org/jira/browse/LUCENE-4121 -- Adrien