Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ebbv
on Jan 20, 2017
|
parent
|
context
|
favorite
| on:
How quickly can you remove spaces from a string?
Optimizing by hand is rarely the fastest thing to do nowadays. I wonder how the original naive approach fairs with all optimizations turned on for gcc and with realistic input?
Too
on Jan 21, 2017
[–]
The optimization flags used should be good enough.
https://github.com/lemire/despacer/blob/master/Makefile
CFLAGS = -fPIC -std=c99 -O3 -march=native
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: