mozilla/rust — pull request #7618 by glinscott (2013-07-06 06:11:20+00:00)
Title: Faster check for ascii-space

Since ' ' is by far one of the most common characters, it is worthwhile
to put it first, and short-circuit the rest of the function.

On the same JSON benchmark, as the json_perf improvement, reading example.json
10 times from https://code.google.com/p/rapidjson/wiki/Performance.

Before: 2.66s
After json perf: 0.16s
After json perf and ascii-space: 0.11s