== Quote from Daniel Keep ([email protected])'s article

> This is basically the only way to map xml parsing to ranges.  As for
> CONSUMING ranges, I think that'd be a bad idea for the same reason
> basing IO entirely on ranges is a bad idea.
> The only other use for ranges I can think of is one already mentioned by
> Benji: traversal of a DOM.  Ranges don't apply to SAX because that's
> what pull parsing is. :D
I agree with it. Net IO maybe be blocked so often, then the program will
pause until there is some data arrived. And when I want to write a no-block
http server with one thread running, the range IO will also block it, the
other socket with data ready will also be blocked.

Reply via email to