mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-11 04:27:44 -05:00
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()?
This commit is contained in:
parent
06221f86d2
commit
523b1eb92e
3 changed files with 199 additions and 93 deletions
|
|
@ -88,6 +88,7 @@ struct alisp_instance {
|
|||
long free_objs;
|
||||
long used_objs;
|
||||
long max_objs;
|
||||
long gc_thr_objs;
|
||||
struct alisp_object *free_objs_list;
|
||||
struct alisp_object *used_objs_list;
|
||||
/* set object */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue