mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-07-31 07:48:52 -04:00
Reduce DeepClone allocation churn Add fast path for single ID properties | Method | GOs | Baseline | After | change time | Baseline alloc | After alloc | change alloc | |---|---|---|---|---|---|---|---| | `CalculateDifferences` | 200 | 3.405 ms | **1.471 ms** | **-57%** | 3.78 MB | **1.99 MB** | **-47%** | | `ApplyPatch` | 200 | 1.669 ms | **0.639 ms** | **-62%** | 3.01 MB | **0.99 MB** | **-67%** | || | `CalculateDifferences` | 1000 | 41.39 ms | **17.38 ms** | **-58%** | 18.55 MB | **9.38 MB** | **-49%** | | `ApplyPatch` | 1000 | 24.34 ms | **8.171 ms** | **-66%** | 14.84 MB | **4.95 MB** | **-67%** | Roughly 50% faster