A la https://bugzilla.mozilla.org/show_bug.cgi?id=1371215 :
We should be using the unrolled version, not memchr(), which is apparently gross and slow on anything before 10.12 (see https://gist.github.com/nico/2624336 ). In particular the defined (__clang__) is wrong, so we need to correct the block in https://hg.mozilla.org/mozilla-central/rev/f4048987a5e3
Once that is done, we can take https://hg.mozilla.org/integration/mozilla-inbound/rev/fce84022f5e3 and https://hg.mozilla.org/integration/mozilla-inbound/rev/35b9efa24066 (minus the change above, of course).
A la https://bugzilla.mozilla.org/show_bug.cgi?id=1371215 :
We should be using the unrolled version, not
memchr(), which is apparently gross and slow on anything before 10.12 (see https://gist.github.com/nico/2624336 ). In particular thedefined (__clang__)is wrong, so we need to correct the block in https://hg.mozilla.org/mozilla-central/rev/f4048987a5e3Once that is done, we can take https://hg.mozilla.org/integration/mozilla-inbound/rev/fce84022f5e3 and https://hg.mozilla.org/integration/mozilla-inbound/rev/35b9efa24066 (minus the change above, of course).