mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 05:34:05 -08:00
ffc60d8397
* Job queue This PR reimplements chan chunkWriteJob with custom buffered queue that should use less memory, because it doesn't preallocate entire buffer for maximum queue size at once. Instead it allocates individual "segments" with smaller size. As elements are added to the queue, they fill individual segments. When elements are removed from the queue (and segments), empty segments can be thrown away. This doesn't change memory usage of the queue when it's full, but should decrease its memory footprint when it's empty (queue will keep max 1 segment in such case). Signed-off-by: Peter Štibraný <pstibrany@gmail.com> * Modify test to work with low resolution timer. Signed-off-by: Peter Štibraný <pstibrany@gmail.com> * Improve comments. Signed-off-by: Peter Štibraný <pstibrany@gmail.com> |
||
---|---|---|
.. | ||
chunk_write_queue.go | ||
chunk_write_queue_test.go | ||
chunks.go | ||
chunks_test.go | ||
head_chunks.go | ||
head_chunks_other.go | ||
head_chunks_test.go | ||
head_chunks_windows.go | ||
queue.go | ||
queue_test.go |