Skip to content

Optimize uint128_t::getString()#68

Merged
eile merged 2 commits intoHBPVIS:masterfrom
eile:master
Jan 4, 2017
Merged

Optimize uint128_t::getString()#68
eile merged 2 commits intoHBPVIS:masterfrom
eile:master

Conversation

@eile
Copy link
Copy Markdown
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
Copy Markdown

@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
Copy Markdown

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.

3 participants