Epic
Part of Crawl Track backlog epic.
Background
Ex6 (Performance) added PARTIAL_SEARCH_FIELDS as a frozen constant in knife status. The same pattern (frozen string literals, extracted field arrays) should be applied to the highest-frequency commands to reduce GC pressure in large Chef environments.
Code Paths
lib/chef/knife/status.rb:37 — PARTIAL_SEARCH_FIELDS reference implementation
lib/chef/knife/search.rb — repeated string construction in #run
lib/chef/knife/node_list.rb — inline string arrays per invocation
lib/chef/knife/cookbook_list.rb — similar pattern
Acceptance Criteria
Dependencies
Estimated Size
Small–Medium
Epic
Part of Crawl Track backlog epic.
Background
Ex6 (Performance) added
PARTIAL_SEARCH_FIELDSas a frozen constant inknife status. The same pattern (frozen string literals, extracted field arrays) should be applied to the highest-frequency commands to reduce GC pressure in large Chef environments.Code Paths
lib/chef/knife/status.rb:37—PARTIAL_SEARCH_FIELDSreference implementationlib/chef/knife/search.rb— repeated string construction in#runlib/chef/knife/node_list.rb— inline string arrays per invocationlib/chef/knife/cookbook_list.rb— similar patternAcceptance Criteria
# frozen_string_literal: truemagic comment added to at least 3 commandsbundle exec rake specpasses with 0 failures after changesDependencies
Estimated Size
Small–Medium