Skip to main content

deduplicate_params_in_slice

Function deduplicate_params_in_slice 

Source
pub fn deduplicate_params_in_slice(slice: &mut StubSlice)
Expand description

Deduplicate parameter lists across all methods and functions in a StubSlice. Many PHP framework methods share identical parameter lists (e.g., thousands of (string $arg, array $opts) signatures). This function groups identical param lists globally (across all slices processed so far) and replaces them with Arc<FnParam> pointers to shared allocations.

Expected memory savings: 100–150 MiB on cold start (vendor collection).