Oliver Hartkopp 4a68366bac lib: optimize sprint_[long_]canframe()
Inspired by the SLCAN rework from Andre Naujoks this patch replaces the
extensive use of sprintf() with simple and efficient ASCII helpers.

valgrind/kcachegrind reported a cyle estimation of about 5.3 million cycles
before and about 1.5 million cycles after the rework (factor 3.55) for the
logging of the exact same CAN content.

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
2014-05-05 22:13:38 +02:00
2010-04-19 12:12:18 +00:00
2012-01-11 12:14:15 +01:00
2010-04-19 12:12:18 +00:00
2012-11-14 20:57:16 +01:00
2014-01-31 11:52:15 +01:00
2012-11-14 20:57:16 +01:00
2012-11-14 20:57:16 +01:00
2012-11-14 20:57:16 +01:00
2012-11-14 20:57:16 +01:00
2012-11-14 20:57:16 +01:00
2012-11-14 20:57:16 +01:00
2012-11-14 20:57:16 +01:00
2014-05-05 22:13:38 +02:00
2012-11-14 20:57:16 +01:00
2012-11-14 20:57:16 +01:00
2012-11-14 20:57:16 +01:00
2014-01-31 12:00:19 +01:00
2012-11-14 20:57:16 +01:00
S
Description
Linux-CAN / SocketCAN user space applications
2.9 MiB
Languages
C 98.1%
CMake 0.7%
Makefile 0.6%
Shell 0.5%