Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Severe bug with large sizes of 'mold values in Windows 2000 with Reb

 [1/1] from: nitsch-lists::netcologne::de at: 3-Nov-2001 3:46


RE: [REBOL] Severe bug with large sizes of 'mold values in Windows 2000 with Rebol/View Hi Andrew [Al--Bri--xtra--co--nz] wrote:
> I've only just come across this bug and I'm not sure if it's confined to > Windows 2000 and Rebol/View. I had a large block of 699 objects. Each object
<<quoted lines omitted: 21>>
> I've emailed this to [feedback--rebol--com] as well. > Anyone got any suggestions?
looks like a bad increasion scheme. like following: lets say, we have a block/string and this gets to small. so automatic allocates old size + 1000, copies old stuff, changes refence and ok. well, if there is a lot to copy, it will trigger garbage collection. now it depends: if rebol does it right, it will allocate old buffer + 100% or that, based on block size. if it does it wrong, it adds a fixed amount. lets say we have 10000K and rebol increases with 1K, it would have to do 10000 copies of some mb, and a gc each time. that would give this saw-tooth. with 100% it would go to needed size very quick, but waste quarter of memory. i had a similar behavior once when i filled a very large block, unusable. then i checkt size before inserting and reallocated by hand, and it worked. -Volker

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted