Skip to content
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

Optimize uint128_t::getString() #68

Merged
merged 2 commits into from Jan 4, 2017
Merged

Optimize uint128_t::getString() #68

merged 2 commits into from Jan 4, 2017

Conversation

eile
Copy link
Contributor

@eile eile commented Jan 3, 2017

Shows up in memcached keyv::Map, which uses this per key, in one
benchmark as 35s vs 43s.

Shows up in memcached keyv::Map, which uses this per key, in one
benchmark as 35s vs 43s.
Copy link

@rdumusc rdumusc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, but I noticed that this changes the behavior compared to the std::ostream operator <<
if( id.high() == 0 )
I trust no user code relies on this string format...

return stream.str();
}
{
// OPT: snprintf is faster then using std::stringstream
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo : then => than

eile pushed a commit to eile/Servus that referenced this pull request Jan 4, 2017
eile pushed a commit to eile/Servus that referenced this pull request Jan 4, 2017
@eile eile merged commit 85e715b into HBPVIS:master Jan 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants