-
- Downloads
Made some function non-PMOD_EXPORT. Added pure and malloc attributes.
This generates somewhat better code for some functions. As an example, reverse(40Mb string) now takes 0.098 instead of 0.114s, or about 16% faster on my computer (gcc 4.4.3). We really should go through all functions that are exported, and see which can be un-exported, and perhaps some more can be made static.
Showing
- src/block_alloc_h.h 1 addition, 1 deletionsrc/block_alloc_h.h
- src/pike_memory.c 11 additions, 10 deletionssrc/pike_memory.c
- src/pike_memory.h 22 additions, 19 deletionssrc/pike_memory.h
- src/stralloc.c 21 additions, 34 deletionssrc/stralloc.c
- src/stralloc.h 45 additions, 49 deletionssrc/stralloc.h
Loading
Please register or sign in to comment