VictoriaMetrics/lib/filestream
Aliaksandr Valialkin 6d84b1beef
lib/filestream: do not measure read / write duration from / to in-memory buffers
Measuring read / write duration from / to in-memory buffers has little sense,
since it will be always fast. It is better to measure read / write duration from / to
real files at vm_filestream_write_duration_seconds_total and vm_filestream_read_duration_seconds_total metrics.
This also reduces overhead on time.Now() and Histogram.UpdateDuration() calls
per each filestream.Reader.Read() and filestream.Writer.Write() call when the data is read / written from / to in-memory buffers.

This is a follow-up for 2f63dec2e3
2024-01-23 14:52:22 +02:00
..
filestream.go lib/filestream: do not measure read / write duration from / to in-memory buffers 2024-01-23 14:52:22 +02:00
filestream_darwin.go app/vmselect/promql: follow-up for ce4f26db02 2024-01-16 02:55:08 +02:00
filestream_freebsd.go all: use %w instead of %s for wrapping errors in fmt.Errorf 2020-06-30 23:05:11 +03:00
filestream_linux.go all: use %w instead of %s for wrapping errors in fmt.Errorf 2020-06-30 23:05:11 +03:00
filestream_openbsd.go lib/{fs,filestream}: small consistency-related updates after cc90a548b1 2020-09-29 00:42:43 +03:00
filestream_solaris.go fixes solaris build (#1345) 2021-05-31 09:21:23 +03:00
filestream_test.go lib/filestream: change Create() to MustCreate() 2023-04-14 15:12:48 -07:00
filestream_windows.go all: follow-up after 34634ec357 2023-03-25 11:57:39 -07:00