-
Notifications
You must be signed in to change notification settings - Fork 826
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Benchmark custom getline implemention #3101
Comments
Slower, but not by much:
|
Sometimes faster when multithreaded:
|
Ugh: profiling shows that most time is being taken in locale locking due to the mapnik/benchmark/test_getline.cpp Line 47 in da054c8
getline yet...
|
Before:
After 336170c:
|
I'm comfortable with perf for now. I've modified the tests so that they pass with the new |
for the record, |
hmm, github image uploads are now working right now... |
@springmeyer - thanks for the bench 👍 |
@artemp added a new getline impl in be437eb that is able to cope with embedded newlines in csv lines. To feel comfortable going forward with this we need to benchmark compared to
std::getline
to ensure performance is not terrible. Ourgetline
will do slightly more work so as long as it is not > 10% slower we should be okay.The text was updated successfully, but these errors were encountered: