MERGE: strchr-speedup - speed up field name canonicalization


During oprofiling beast, I noticed that 6% of the total cpu usage while playing
a test song is spent in strchr(). The reason is that record fields (probably for
probes) are canonicalized to A-Za-z0-9, and that for every character in the
records' field name, a string of these 62 chars is searched using strchr(). I
rewrote the function which does canonicalization using one if statement, and
beast CPU usage drops by a few percent (and strchr() disappears from the

Please merge:

branch: strchr-speedup

   Cu... Stefan
Stefan Westerfeld, Hamburg/Germany,

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]