From: | David McMinn |
Date: | 11 Sep 2000 at 15:16:36 |
Subject: | Re: ListViews |
Hi Ralf
> > newtype .silly
> > lotsoflongs.l[1000]
> > end newtype
> >
> > dim list dave.silly(1000)
> >
> > should allocate atleast 3.8mb for just the longs, nevermind the overheads
> > (1000*4*1000)...I think so anyway..mind you it`s 4am :)
>
> uhm, the overhead should be just 1000*4, as you can get to the longs by addig X
> (=4??) bytes to the base for every long you want beyond the first one.
No, Dave's saying that all the memory for all the items in the list will get
allocated when you Dim the array - and so if you have each item in the list
containing 1000 longs, you will be allocating 1000 (for the number of items in
the list) * 4 (sizeof.l) * 1000 (number of longs in each item of the list)
which gives 4000000 bytes (3.8Mb ish).
> Ofcourse this is only true if they programmed it well :)
Which we all know isn't always the case with Blitz :)
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie