About...
This parser focuses on speed above everything else.
Written completely in ANSI C, it will compile on most 32-bit compatible platforms.
This includes win32, linux, and MacOS X.
Features...
- Very fast
- HTML parsing
- Using a tiny amount of memory
- Accurate whitespace handling (even the whitespace inside the element tag)
Preprocessor options...
- -DSBXP_MIN_SIZE - Will chop the size of the binary in half but decrease the speed by about 1/4 to a 1/3.
Performance...
I wish i had more info on this subject, but i did test some files. The
test computer is a P4/2.80Ghz with 1 GB ram. Cygwin gcc.
The test files are at (http://www.ltg.ed.ac.uk/~kari/dafif/cycle-0303/)
File | Size | Results 1 | Results 2 |
|
NAV.bloat.xml | 5.3 MB | 0.156s | 0.094s |
ARPT.bloat.xml | 256.6 MB | 8.126s | 5.063s |
PJA.bloat.xml | 0.9 MB | 0.031s | 0.016s |
|
Results 1: default flags set.
Results 2: PARSE_FOR_SPEED flag set.
Links...
|