3 ms·
Take the Darwin version linked from your site. Run perf record wc thefile.txt. Then run perf report and you will see iswspace in the call graph. As I show in [
by danieldk 7y ago
Take the Darwin version linked from your site. Run perf record wc thefile.txt. Then run perf report and you will see iswspace in the call graph.
As I show in [1], removing this call and replacing it by a character match, gives a speedup of almost 2x.
[1] https://news.ycombinator.com/item?id=21592089 https://news.ycombinator.com/item?id=21592089