|
|
|
|
|
by ScottBurson
3356 days ago
|
|
For one thing, all numbers can be written in binary, saving the lexing and conversion time. For another, strings can be written by first writing the length (in binary, of course), then writing the raw contents; there's no need to scan the input looking for the closing quote, handle backslash escapes, or do UTF-8 conversion. That's probably most of the gain right there, but more things can be done along those lines. |
|