Heng Li
c41518ae85
r1166: sync kalloc with miniwfa and miniprot
2023-04-19 21:38:47 -04:00
Heng Li
7fc03b0c32
r953: krealloc is buggy
...
Its use in minimap2 didn't trigger the bug, so the older minimap2 is still ok.
2019-07-18 09:13:30 -04:00
Heng Li
f6608fe99c
r620: revamped thread-local memory management
...
* Don't preallocate sdust_buf or minizer list. kalloc should be fast enough -
benchmarks needed to confirm.
* Fixed a memory leak caused by divergence estimate (post v2.5)
* Reset the kalloc buffer after mapping a long query. This reduces peak memory
when large chunks of memory are allocated, at the cost of performance, though.
2017-12-11 12:11:10 -05:00
Heng Li
11081c6c27
r411: refactored kalloc for clarity
...
The new version is closer to K&R's original implementation.
2017-09-18 19:49:15 -04:00
Heng Li
6db9b7579c
Better MSVC support
...
* get rid of alloca()
* no variable-sized arrays
2017-09-03 11:05:55 -04:00
Heng Li
490a37a599
number of allocated units must be an even number
2017-06-26 23:15:30 -04:00
Heng Li
0d03a43efd
don't round to power-of-2
...
Because rounding wastes memory when we use power-of-2 high-water marks.
2017-06-26 22:10:45 -04:00
Heng Li
f35e152e99
fixed a few memory leaks
2017-04-13 23:05:19 -04:00
Heng Li
01baa847a1
Homopolymer-compressed k-mer sketch
2017-04-06 15:37:34 -04:00