Triode;688853 Wrote: 
> Suggest you have a play with this.  I think we can rewrite that bit to
> parse incrementally as the xml arrives, but will require chaning how
> the code is called from xmlbrowser.  I'll look at this at somepoint
> soon.

I've drafted up something that seems to be working. At present it is
constructed as a separate module which can be used by simply replacing
a 'use XML::Simple' with a 'use XML::Simple_with_IdleStreams'. Horrid
name & should be renamed anyway if included in a plugin.

It does add overhead (about 10% or more) to the existing XMLin call.
That might be reduced if more carefully coded.


My goal would be to turn this into something that replaces XML::Simple
system-wide, if it's worth pursuing. Perhaps a plugin to supply as an
optional component. But that will take some more study of how module
loading works - I'm not sure how advisable it would be to tinker with
an existing module's symbol table (if that's what it tales).

Alternatively the logic could be simply unrolled into an existing
XML::Simple, e.g. as a patch, or replacement.

Anyway, I shall run with it for a few weeks and see how it fares.


+-------------------------------------------------------------------+
|Filename: Simple_with_IdleStreams.pm                               |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=13063|
+-------------------------------------------------------------------+

-- 
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