Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » U++ community news and announcements » integer->String conversion optimised
integer->String conversion optimised [message #57395] Wed, 04 August 2021 11:30 Go to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Inspired by

https://github.com/miloyip/itoa-benchmark/blob/940542a777015 5ee3e9f2777ebc178dc899b43e0/src/branchlut.cpp

I have implemented super-fast conversion routines:

https://github.com/ultimatepp/ultimatepp/blob/1d018151f105f4 e739045307577e3dd0bc8b856a/uppsrc/Core/Format.cpp#L75

AsString(int) should now be about 8 times faster than before.

Mirek
icon14.gif  Re: integer->String conversion optimised [message #57427 is a reply to message #57395] Sun, 08 August 2021 19:48 Go to previous messageGo to next message
Didier is currently offline  Didier
Messages: 680
Registered: November 2008
Location: France
Contributor
No Message Body
Re: integer->String conversion optimised [message #57448 is a reply to message #57395] Wed, 18 August 2021 01:05 Go to previous message
zsolt is currently offline  zsolt
Messages: 693
Registered: December 2005
Location: Budapest, Hungary
Contributor
Thanks!
Previous Topic: gtk rendering improvements, BufferPainter::PaintOnceHint
Next Topic: Format new double formatter(s)
Goto Forum:
  


Current Time: Thu Mar 28 13:43:06 CET 2024

Total time taken to generate the page: 0.01329 seconds