mirror of https://github.com/apache/lucene.git
add TODO
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4547@1439918 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fa35092734
commit
2212440b3b
|
@ -160,6 +160,7 @@ public class AppendingLongBuffer {
|
||||||
* Return the number of bytes used by this instance.
|
* Return the number of bytes used by this instance.
|
||||||
*/
|
*/
|
||||||
public long ramBytesUsed() {
|
public long ramBytesUsed() {
|
||||||
|
// TODO: this is called per-doc-per-norms/dv-field, can we optimize this?
|
||||||
long bytesUsed = RamUsageEstimator.alignObjectSize(
|
long bytesUsed = RamUsageEstimator.alignObjectSize(
|
||||||
RamUsageEstimator.NUM_BYTES_OBJECT_HEADER
|
RamUsageEstimator.NUM_BYTES_OBJECT_HEADER
|
||||||
+ 3 * RamUsageEstimator.NUM_BYTES_OBJECT_REF // the 3 arrays
|
+ 3 * RamUsageEstimator.NUM_BYTES_OBJECT_REF // the 3 arrays
|
||||||
|
|
Loading…
Reference in New Issue