Re: [Tuxpaint-devel] [Tuxpaint-users] Tux Paint 0.9.27 beta releases
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
|
From: Bill K. <nb...@so...> - 2021-11-20 10:01:00
|
On Sat, Nov 20, 2021 at 01:37:06AM -0800, Bill Kendrick wrote: <snip> > Right now, it DOES eat up a bunch of heap space, by allocating > (and reallocating, to enlarge) the queue structure. It only frees > it at the end of the fill process. > > However, I'll see if I can get it to be smarter, and allow the queue > to shrink, probably by treating it as a stack. (It doesn't actually > matter whether it's a queue or a stack, in the computer science > meaning of the terms.) Okay, switching it to a stack was trivial, and saves a lot of space (since the space for the 'queue' doesn't grow every time something is added, only when there's not enough room to add more). https://sourceforge.net/p/tuxpaint/tuxpaint/ci/e77c7766cd76b579dc12cbceafea25c03b79f446/ I'd appreciate it if people could test on their systems. I didn't do as massive of an overhaul in there as I had feared I'd have to. (I was getting quite cranky over it the last couple nights; apologies to my family ;-) ) However, if folks feel like building new betas, feel free to send them my way and I'll post them. Thanks for everyone's patience with me while I hack on this poor code in every way I can imagine. ;-D -- -bill! Sent from my computer |