]> git.alsa-project.org Git - alsa-lib.git/commit
alsalisp memory allocation optimization
authorJaroslav Kysela <perex@perex.cz>
Fri, 22 Aug 2003 09:41:17 +0000 (09:41 +0000)
committerJaroslav Kysela <perex@perex.cz>
Fri, 22 Aug 2003 09:41:17 +0000 (09:41 +0000)
commit523b1eb92e00fa7a5ff9576edae8c7b8bdf16a1f
tree140117dcf79b49bd11bdce23338b89af8e08b1b8
parent06221f86d207cb33ddd4867ca5301eeb247c4400
alsalisp memory allocation optimization
  - force of reusing alisp objects
  - added auto-garbage-collect mechanism
  - fixed bad garbage-collect (yes, the original code can free "running" lisp program)
  - hctl.lisp test example
    - reduced lisp object memory pool usage from 240kB to 29kB (auto-gc)
    - reduced --''-- from 29kB (auto-gc) to 9kB (manual gc)
FIXME: we need definitely an opminization for the alisp object lookups
       - use bsearch()?
alsalisp/hctl.lisp
src/alisp/alisp.c
src/alisp/alisp_local.h