[Playlist] libSpiff 0.7.0 released
Sebastian Pipping
webmaster at hartwork.org
Wed May 30 17:12:07 UTC 2007
Lucas Gonze wrote:
> What is "parsing text from a chunk callback" for, Sebastian?
-------------------------------------------------------------------
I feared the name was not good enough. Sorry, I just couldn't
find a better one...
Parsing from a chunk callback means the parser requests new
chunks of input (e.g. 10 characters) until no more input is
available or a parse error occurs. Expat, the underlying XML
parser, natively supports this feature and now libSpiff
supports it as well. You can use this feature to save memory
when parsing large files for example. The number of characters
per chunk is variable, so the chunk callback could pass two lines
of text of different length as two chunks and then stop.
-------------------------------------------------------------------
> The attention to detail and slow accumulation of improvements you have
> put into this project show why shared libraries are so important --
> otherwise it is nearly impossible to reach really high quality. Watching
> this codebase develop makes me feel like I'm seeing something take shape
> on the order of libcurses or ultra-robust utilities like grep and sed.
-------------------------------------------------------------------
Thanks :-)
Sebastian
More information about the Playlist
mailing list