XPerf
语言Zig

zperf 规则 ID(slug)

Canonical ids are slugs only. Numerics from the old map are historical and not accepted.

Slug
zp-alloc-hot
zp-append-without-reserve
zp-page-allocator-small
zp-debug-allocator
zp-large-struct-by-value
zp-print-hot
zp-unbuffered-io
zp-missing-free
zp-broad-runtime-safety
zp-packable-bools
zp-usize-index-field
zp-aos-single-field
zp-catch-unreachable-alloc
zp-oversized-enum-tag
zp-optional-scalar-field
zp-bool-array
zp-static-string-map
zp-runtime-div-hot
zp-queue-ordered-remove
zp-shift-on-read
zp-per-packet-alloc
zp-invariant-float-div
zp-map-put-without-ensure
zp-catch-unreachable-io
zp-arena-reset-free-all
zp-create-destroy-hot
zp-fixed-size-alloc-hot
zp-open-file-hot
zp-clock-hot
zp-json-hot
zp-alloc-print-hot

另见 根目录 rule-id-map。

已重命名 2026-10-27 (墓碑化旧 ID;永不复用)

Default --scope all (or kit-equivalent). 旧的 *-in-loop ID 会误导工具/模型;它们被墓碑化在 evidence/_removed/ 下。

旧 slug新 slug
zp-alloc-in-loopzp-alloc-hot
zp-alloc-print-in-loopzp-alloc-print-hot
zp-clock-in-loopzp-clock-hot
zp-create-destroy-in-loopzp-create-destroy-hot
zp-fixed-size-alloc-in-loopzp-fixed-size-alloc-hot
zp-json-in-loopzp-json-hot
zp-open-file-in-loopzp-open-file-hot
zp-print-in-loopzp-print-hot
zp-runtime-div-in-loopzp-runtime-div-hot

Removed

  • zp-extern-struct-padding — walk about 1.21×, 24 bytes versus 16; see evidence/_removed/