mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-02 17:28:30 +00:00
Make fixes, improvements, and chibicc python bindings
- python now mixes audio 10x faster - python octal notation is restored - chibicc now builds code 3x faster - chibicc now has help documentation - chibicc can now generate basic python bindings - linenoise now supports some paredit-like features See #141
This commit is contained in:
parent
28997f3acb
commit
7061c79c22
121 changed files with 5272 additions and 1928 deletions
12
third_party/dlmalloc/bulk_free.c
vendored
12
third_party/dlmalloc/bulk_free.c
vendored
|
@ -3,13 +3,13 @@
|
|||
|
||||
/**
|
||||
* Frees and clears (sets to NULL) each non-null pointer in the given
|
||||
* array. This is likely to be faster than freeing them one-by-one. If
|
||||
* footers are used, pointers that have been allocated in different
|
||||
* mspaces are not freed or cleared, and the count of all such pointers
|
||||
* is returned. For large arrays of pointers with poor locality, it may
|
||||
* be worthwhile to sort this array before calling bulk_free.
|
||||
* array. This is twice as fast as freeing them one-by-one. If footers
|
||||
* are used, pointers that have been allocated in different mspaces are
|
||||
* not freed or cleared, and the count of all such pointers is returned.
|
||||
* For large arrays of pointers with poor locality, it may be worthwhile
|
||||
* to sort this array before calling bulk_free.
|
||||
*/
|
||||
size_t bulk_free(void *array[], size_t nelem) {
|
||||
size_t dlbulk_free(void *array[], size_t nelem) {
|
||||
/*
|
||||
* Try to free all pointers in the given array. Note: this could be
|
||||
* made faster, by delaying consolidation, at the price of disabling
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue