mirror of
https://github.com/siderolabs/talos.git
synced 2025-09-10 08:21:13 +02:00
Fixes #4688 Instead of using generic library, build some handcrafted code to reuse buffers, do partial parsing of the data we need for the processes API. Benchmark (it runs with significant number of processes on the host): ``` name time/op PrometheusProcfs-16 3.42ms ± 8% Processes-16 2.36ms ± 5% name alloc/op PrometheusProcfs-16 366kB ± 0% Processes-16 255kB ± 0% name allocs/op PrometheusProcfs-16 6.76k ± 0% Processes-16 3.83k ± 0% ``` Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
7 lines
307 B
Go
7 lines
307 B
Go
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
// Package miniprocfs contains optimized small interface to access /proc filesystem.
|
|
package miniprocfs
|