Re: Dramatic slowdown -ping Rob
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Nov 14, 2004
- 563 views
On Fri, 12 Nov 2004 22:11:07 -0800, Robert Craig <guest at RapidEuphoria.com> wrote: >Pete Lomax wrote: >> >> If INNER is 27, this completes in 0.27 seconds. If it is 28, it takes >> 3.19 seconds, over tenfold performance drop. Why? > >On my 1.8 GHz Pentium-4 machine with 256 Mb RAM, >running ex.exe: > >Euphoria 2.4 27 0.94 > 28 1.70 > >Euphoria 2.5 27 0.05 > 28 0.05 > >I couldn't believe this Absolutely, I'd need to see it before I believed it ) >, so I dumped "table" into a file >and did a diff. There was no difference. The times >seemed reasonable. With 2.5 the prompt came back instantly. >With 2.4 it took a second or so. > >I can't really explain this, other than to point out that >sometimes weird performance situations can develop with >the malloc() heap. 2.5 frees up a lot of front-end data >before running the back-end, but that couldn't explain everything. Maybe I triggered a heapCompact, somehow, but I'm not sure why since I haven't (deliberately) released thousands of unused heap slots >Maybe I put in an optimization that I've forgotten about. Wishful thinking, perhaps. OK, you need to concentrate on 2.5, and you don't need to waste time on this issue right now (indeed there is zero time pressure on me over this), but I'd hate to think you drop this as some great "unsolveable mystery" and never think of it again. If there is a genuine problem and it has moved (from 27/28), it'll be a _long_ while before anyone finds it again, and it might be much more serious/much more urgent. Is there some kind of "API spy" program that can give further stats? Regards, Pete