Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming > #1746

Re: reference count size

From "BartC" <bc@freeuk.com>
Newsgroups comp.programming
Subject Re: reference count size
Date 2012-06-07 17:23 +0100
Organization A noiseless patient Spider
Message-ID <jqqkin$2bu$2@dont-email.me> (permalink)
References <233b32fd-bdfc-4ffb-a9da-320abb11c07d@googlegroups.com>

Show all headers | View raw



"bob" <bob@coolfone.comze.com> wrote in message
news:233b32fd-bdfc-4ffb-a9da-320abb11c07d@googlegroups.com...
> What is the typical size of a reference count?  32 bits?  So, does this
> add 4 bytes to the size of every object?

Reference counts are typically used with heap-allocated objects, which may 
already have overheads beyond the size of the object, might have a minimum 
size anyway, and are generally used for objects bigger then 32-bits. So the 
few extra bytes is usually not significant.

-- 
Bartc 

Back to comp.programming | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

reference count size bob <bob@coolfone.comze.com> - 2012-06-07 08:42 -0700
  Re: reference count size "BartC" <bc@freeuk.com> - 2012-06-07 17:23 +0100
    Re: reference count size BGB <cr88192@hotmail.com> - 2012-06-07 23:55 -0500
      Re: reference count size "BartC" <bc@freeuk.com> - 2012-06-08 16:52 +0100
        Re: reference count size BGB <cr88192@hotmail.com> - 2012-06-09 09:11 -0500
  Re: reference count size Robert Wessel <robertwessel2@yahoo.com> - 2012-06-07 11:32 -0500
    Re: reference count size "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2012-06-09 10:29 +0100
      Re: reference count size Ian Collins <ian-news@hotmail.com> - 2012-06-09 21:43 +1200
  Re: reference count size JJ <jaejunks@googlemail.com> - 2012-06-08 01:46 +0700
    Re: reference count size Willem <willem@toad.stack.nl> - 2012-06-07 18:52 +0000

csiph-web