On Fri, Oct 19, 2007 at 12:24:50AM -0400, Richard Heck wrote:
> Andre Poenitz wrote:
> >On Thu, Oct 18, 2007 at 02:47:44PM -0400, Richard Heck wrote:
> >  
> >>So the question is: Are the added memory requirements here 
> >>objectionable?
> >>    
> >How much would that be?
> >  
> I don't know C++ internals enough to be sure how much we're talking per 
> inset. We're looking at, on average, a string and a half, maybe 8-10 
> characters, and an int, per inset, plus whatever overhead a struct and 
> class involve. That said, InsetCommand's aren't all that common. It's 
> not like we're dealing with math. So maybe it's trivial, in the end.

Right. There's at most a hundred per doc. struct/class does not add
anything, a string is usally three pointers + the real contents + some
heap management. So, say, 70 bytes for the data, i.e. 7k in total
on a 32bit machine. Really no big deal.

Andre'

Reply via email to