hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Holstad <erikhols...@gmail.com>
Subject Re: Java sizeof!
Date Thu, 05 Mar 2009 19:12:38 GMT
Hi Ryan!
Yeah that looks like the numbers that I've gotten too except for the
ByteBuffer
where I got 48 instead of 56

    hb
        class [B
    offset
        int
    isReadOnly
        boolean
    bigEndian
        boolean
    nativeByteOrder
        boolean
    mark
        int
    position
        int
    limit
        int
    capacity
        int
    address
        long

c[0] 31, c[1] 3, refSize 4, size 43
usage from ClassSize, BB 48

But maybe I'm missing something.

Like you said, not really sure if we can run this with HBase or just as an
extra tool
to verify the cost and size of all the objects that we are using, so we have
different
ways of figuring it out. I will put up my current test code as soon as I
cleaned it up
so if you could do that too, when you have a chance that would be cool.

Erik

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message