Files
sbox-public/engine/Sandbox.Engine/Utility
Patrick Jr. c035e2437f Cache reflection property lookups in Json.DeserializeToObject
DeserializeToObject rebuilt a property dictionary via reflection + LINQ on every call. Use ReflectionCache, so the work is done once per type.

Benchmark (100 calls, same type):

  Cached:   339 us, 474 KB allocated

  Uncached: 898 us, 710 KB allocated

  Result:   2.65x faster, 50%% fewer allocations
2026-06-22 18:16:39 +02:00
..
2026-03-25 08:15:44 +00:00
2025-11-24 09:05:18 +00:00
2025-11-24 09:05:18 +00:00
2026-06-06 21:46:13 +01:00
2026-02-22 14:56:54 +00:00
2026-03-09 11:05:46 +01:00
2025-11-24 09:05:18 +00:00
2026-05-27 16:46:08 +02:00
2025-11-24 09:05:18 +00:00
2025-11-24 09:05:18 +00:00
2025-11-24 09:05:18 +00:00
2026-05-28 14:39:37 +00:00
2025-11-24 09:05:18 +00:00
2025-11-24 09:05:18 +00:00
2026-02-22 14:56:54 +00:00
2025-11-24 09:05:18 +00:00
2025-11-24 09:05:18 +00:00
2026-03-06 06:16:47 -08:00
2025-11-24 09:05:18 +00:00
2026-01-12 21:59:15 +01:00
2025-11-24 09:05:18 +00:00