mirror of
https://github.com/prometheus/prometheus
synced 2024-12-27 00:53:12 +00:00
ef3ab96111
The First time is kind of trivial as we always know it when we create a new chunkDesc. The last time is only know when the chunk is closed, so we have to set it at that time. The change saves a lot of digging down into the chunk itself. Especially the last time is relative expensive as it involves the creation of an iterator. The first time access now doesn't require locking, which is also a nice gain. |
||
---|---|---|
.. | ||
local | ||
metric | ||
remote | ||
storage.go |