Skip to content
/ itoa Public

The fastest integer to ASCII. Only the fastest, not faster. WTF?(what the fuck!) Bullshit!

License

Notifications You must be signed in to change notification settings

asciphx/itoa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

itoa

Universe's fastest integer to ASCII conversion. C++11 is supported.

i2a.h    - programming interface, header file for c version
i2a.c    - source file for the c version
i2a.hpp  - C++ version header file

Building (Test)

Out-of-source build with CMake is recommended.

mkdir build
cd build
cmake ..
cd ..
cmake --build ./build --config Release
./test

Features

  • If the inline C++ version is required, the performance will be improved by about 100%
  • The header file is separated from the source file, without too much inlining, preventing slow compilation
  • test

illustrate

Details (c++ version, Linux)

Prediction, comprehensive performance comparison with SSE is roughly as follows

Function Time (ns) Speedup
sse2 7.614 25.51x
i2a 3.685 53.15x
null 2.230 87.09x

About

The fastest integer to ASCII. Only the fastest, not faster. WTF?(what the fuck!) Bullshit!

Resources

License

Stars

Watchers

Forks

Packages

No packages published