Triode;688847 Wrote: 
> Absolutely - but that call (XMLin) is a single atomic call - we need to
> use expat to incrementally parse the xml instead, so will require some
> refactoring and probably using a new interface to xmlbrowser.
> 
> Can I assume you are using 7.6 or later?  I think we can make that work
> with the changes I'm thinking of.

Yes, I am. 7.7.1 on plug, I think I've still got 7.6.1 on the iMac.

I'll be interested to see what changes you are thinking of.

FWIW I looked quickly at XML::Simple.

On my system it uses XML::Parser, in particular XML::Parser:Tree,
before entering into its own recursive 'collapse' sub. The 5 seconds
seems to break very roughly 40/60 between the two.

I think that one could reasonably easily:
(a) have XML::Simple::XMLin invoke an adapted XML::Parser::Tree, such
that idleStream is called at appropriate intervals.
(b) override 'collapse' such that it, too, calls idleStream, if
appropriate, each time it is entered.

That might all be packaged into a sub-class. Or, perhaps better still
(on my server anyway), be installed as a replacement XML::Simple !

Just thoughts. I've no practical experience of this type of thing. And
I don't know how one should set the timing intervals. (timer ?
HiRes::time ? EV::now ?)


-- 
mrw
------------------------------------------------------------------------
mrw's Profile: http://forums.slimdevices.com/member.php?userid=38299
View this thread: http://forums.slimdevices.com/showthread.php?t=53229

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to