runtimecfg

package
v0.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package runtimecfg holds the Go runtime settings the server runs with, so the binary and the benchmarks that stand in for it use the same ones.

Index

Constants

View Source
const GCPercent = 200

GCPercent is the server's GOGC. A tool call allocates about 0.5 MB, most of it short-lived go-sdk decode buffers, over a live heap of 1-2 MB, so the default 100 ran a collection every few calls. 200 cut the cached notebook_list call by about 23% (B3, interleaved, p = 0.002) and did not raise idle RSS (bench/rss).

Variables

This section is empty.

Functions

func Apply

func Apply() (restore func())

Apply sets GCPercent unless the operator set GOGC, and returns a func that restores the previous value (for tests and benchmarks).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL