comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Object overhead
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Object overhead [message #26764] Fri, 21 September 2001 14:44
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
I noticed that the size of an object array, where each object only has
one empty poiter field, is 4 times larger than the size of an empty
pointer array of the same length. PTRARR(1000), when saved, takes about
44 Kb. OBJARR(1000) of {junk, data:PTR_NEW()} takes 176 Kb. Why is that?
Also, it takes twice the time (0.79 vs 0.44 s) to save an object array
than the pointer array. It can not have to do with the volume of saved
data because it takes 0.05 s to save an 80 Kb FLTARR(20000).
I thought of converting a data processing program to objects but found
that storage space required almost doubles (well, partially due to some
redundancy in object fields) and save/restore time increased tenfold.
For storing many thousands of data objects, this matters.
Thank you,
Pavel
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Invalid Object Reference!
Next Topic: Re: Translation Error

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:28:49 PDT 2025

Total time taken to generate the page: 0.00498 seconds