Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • I'm on a roll now, just got XML::Filter::Cache written, which caches SAX events to disk using Storable. It makes SAX parsing nice and fast (assuming you've parsed once already).

    Neat -- does it just Store each event's data to the disk file individually, so that parsing the file doesn't involve unStoring a whole structure of events? I can imagine efficiency gains either way (or inbetween), but I haven't gone benchmarking Storeable yet or anything.

    Also, is this for caching any bunch of SAX e

    • It stores it all in one big file, but not in one big storable file - it's a simple record oriented file (i.e. 4 byte "length" marker followed by the Storable structure of that length). So it's all streaming. Of course that's just the default storage backend. I've hopefully made it flexible enough that you could do different storage backends.

      It'll cache SAX events from anything.