[Talk-GB] Pigging potlach ...

Richard Fairhurst richard at systemed.net
Wed Jan 11 11:40:15 GMT 2012


John Sturdy wrote:
> The slowdown I notice is on a single-core 512Mb machine, and I 
> haven't looked into full system statistics for it but the behaviour 
> is consistent with thrashing virtual memory... after editing for a 
> while, drawing ways with the mouse gets very slow (almost freezes); 
> I think I found the browser process had got very large, but I can't 
> remember.  I just guessed that the code to search for whether the 
> mouse was currently on an existing node was looking through more 
> stuff than would fit in RAM, that was what the behaviour "felt" consistent
> with.

I think there's always been a memory leak there with P2; I've noticed that
sort of behaviour for months. I've only done minimal bits of delving into
it, but suspect it's a case of _either_ some sprites being left on the
display list (maybe the invisible sprites which P2 uses to define "hit
zones" for each way/node), or that the "event listeners" by which Flash
responds to mouse clicks (and other events) aren't being cleared properly.

Unfortunately it's not trivial to debug - I think this sort of thing is the
way that Adobe makes their money from Flash (i.e. you need to buy Flash
Builder for the profiling tools). But that's not to say it's impossible, and
I'd very much like to do so.

(Incidentally, one simple thing you can do to speed P2 up is to clear any
GPS traces you're no longer using - it's easy to forget that you have, in
effect, a whole bunch of 1000-node ways sitting around!)

> I can investigate further if you like, but are people concerned 
> with such small machines (other than as thin clients) these 
> days anyway?

Please do. I am interested, definitely - P2 should aim to run efficiently on
any machine :) (and it's not entirely altruistic, as one of the machines I
use regularly is a 2004 PowerPC Mac).

cheers
Richard



--
View this message in context: http://gis.638310.n2.nabble.com/Pigging-potlach-tp7174091p7175878.html
Sent from the Great Britain mailing list archive at Nabble.com.



More information about the Talk-GB mailing list