-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from masatake/inline
Put inline keyword on a hot spot function
- Loading branch information
Showing
6 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
# Version XXX | ||
|
||
- imporve performance; put inline keyword on a hot spot function. | ||
|
||
- before this change | ||
|
||
``` | ||
$ /bin/time ./readtags -t ~/.citre/kernel82.tags -l > /dev/null | ||
9.59user 0.42system 0:10.06elapsed 99%CPU (0avgtext+0avgdata 2819340maxresident)k | ||
0inputs+0outputs (0major+44149minor)pagefaults 0swaps | ||
``` | ||
|
||
- after this change | ||
|
||
``` | ||
$ /bin/time ./readtags -t ~/.citre/kernel82.tags -l > /dev/null | ||
7.82user 0.43system 0:08.30elapsed 99%CPU (0avgtext+0avgdata 2819688maxresident)k | ||
0inputs+0outputs (0major+44138minor)pagefaults 0swaps | ||
``` | ||
|
||
# Version 0.4.0 | ||
|
||
- support cmake as a build system (ParticleG <[email protected]>) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,6 +56,7 @@ fi | |
AC_SUBST([GCOV_CFLAGS]) | ||
|
||
AC_PROG_CC_C99 | ||
AC_C_INLINE | ||
|
||
AC_CONFIG_FILES([Makefile | ||
libreadtags.pc | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* Taken from https://gitlab.kitware.com/cmake/community/-/wikis/contrib/macros/TestInline | ||
* for using "inline" with cmake build. */ | ||
/* Test source lifted from /usr/share/autoconf/autoconf/c.m4 */ | ||
typedef int foo_t; | ||
static inline foo_t static_foo(){return 0;} | ||
foo_t foo(){return 0;} | ||
int main(int argc, char *argv[]){return 0;} |