influxdb/tsdb/engine
Jason Wilder f251db013c Avoid stat syscall when planning compactions
When the planner runs, it needs to determine if any files have tombstones.
The code to determine if a tombstone existed involved stating the .tombstone
file.  Since the planner runs very frequently when there are many shards, this
causea a lot of system calls that are unnecessary.

Instead, cache the results of the stats calls and only refresh them when we
haven't checked at least once or we write new tombstone data.

This also caches the results of the TSMReader.Stats call to avoid creating
garbage.
2016-10-03 08:36:05 -06:00
..
tsm1 Avoid stat syscall when planning compactions 2016-10-03 08:36:05 -06:00
engine.go Lint tsdb and tsdb/engine package 2016-02-10 21:33:46 +01:00