On a roll...

Matts on 2002-01-28T15:53:15

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

Next onto the more tricky bits of AxKit - XSP and AxPoint. AxPoint first as its easier.


XML::Filter::Cache

TorgoX on 2002-01-28T23:07:01

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 events, or just SAX events from XML parsing?

Re:XML::Filter::Cache

Matts on 2002-01-29T07:53:04

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.

Re:XML::Filter::Cache

TorgoX on 2002-01-29T08:26:04

Delish!