Linux-CAN / SocketCAN user space applications
 
 
 
 
Go to file
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
config/m4 add autotools infrastructure 2010-04-19 12:12:18 +00:00
include/linux isotp: fix path mentioned in file 2014-01-23 14:31:10 +01:00
.gitignore gitignore: added tarballs 2012-01-11 12:14:15 +01:00
Android.mk Android.mk: canbusload: fix compilation, make use of libcan 2014-01-31 11:52:20 +01:00
GNUmakefile.am canbusload: Add exact CAN frame length calculation (including bitstuffing) 2014-01-30 16:23:25 +01:00
Makefile Makefile: add large file support (LFS) 2014-02-26 19:49:08 +01:00
asc2log.c asc2log: inform about uninstalled locales at date conversion failures 2013-11-28 16:12:17 +01:00
autogen.sh add autotools infrastructure 2010-04-19 12:12:18 +00:00
bcmserver.c remove obsolete SVN ID tags 2012-11-14 20:57:16 +01:00
can-calc-bit-timing.c can-calc-bit-timing: add a proper GNU license agreement 2014-02-27 22:08:04 +01:00
canbusload.c canbusload: print bitstuffing mode when showing current time is enabled 2014-02-01 21:30:12 +01:00
candump.c candump: reduce printf calls for logfile format 2014-05-05 21:29:56 +02:00
canfdtest.c treewide: replace berlios contact email by linux-can@vger.kernel.org 2012-01-11 12:14:15 +01:00
canframelen.c canbusload: Fix worst-case frame length estimation 2014-01-30 16:23:32 +01:00
canframelen.h Add license to canframelen.h 2014-01-31 11:52:15 +01:00
cangen.c cangen: use long long in time computation for -g to support >2.1s 2013-02-07 13:57:49 +01:00
cangw.c cangw: add an option for the per rule limitation of frame hops 2013-09-04 20:30:34 +02:00
canlogserver.c can-utils: trivial: fix typos concerning "separation" and "useful" 2013-08-15 21:09:27 +02:00
canplayer.c remove obsolete SVN ID tags 2012-11-14 20:57:16 +01:00
cansend.c can-utils: trivial: fix typos concerning "separation" and "useful" 2013-08-15 21:09:27 +02:00
cansniffer.c cansniffer: fix file name in header 2013-08-17 19:04:48 +02:00
configure.ac configure: add checks for large file support (LFS) 2014-02-26 19:49:15 +01:00
isotpdump.c remove obsolete SVN ID tags 2012-11-14 20:57:16 +01:00
isotprecv.c remove obsolete SVN ID tags 2012-11-14 20:57:16 +01:00
isotpsend.c remove obsolete SVN ID tags 2012-11-14 20:57:16 +01:00
isotpserver.c remove obsolete SVN ID tags 2012-11-14 20:57:16 +01:00
isotpsniffer.c remove obsolete SVN ID tags 2012-11-14 20:57:16 +01:00
isotptun.c remove obsolete SVN ID tags 2012-11-14 20:57:16 +01:00
lib.c lib: optimize sprint_[long_]canframe() 2014-05-05 22:13:38 +02:00
lib.h can-utils: trivial: fix typos concerning "separation" and "useful" 2013-08-15 21:09:27 +02:00
log2asc.c remove obsolete SVN ID tags 2012-11-14 20:57:16 +01:00
log2long.c remove obsolete SVN ID tags 2012-11-14 20:57:16 +01:00
slcan_attach.c remove obsolete SVN ID tags 2012-11-14 20:57:16 +01:00
slcand.c slcand: include <sys/socket.h> 2014-01-31 12:00:19 +01:00
slcanpty.c slcanpty: declare command buffer static 2014-01-16 16:31:50 +01:00
terminal.h remove obsolete SVN ID tags 2012-11-14 20:57:16 +01:00