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-02-03 09:49:16 +00:00
2026-06-22 18:16:39 +02:00
2025-12-01 08:49:24 +00:00
2026-03-25 08:15:44 +00:00
2026-05-08 10:53:50 +01:00
2026-06-11 15:34:16 +01:00
2026-04-10 14:46:16 -07:00
2026-06-10 21:33:18 +00:00
2026-01-07 09:29:47 +01: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-05-27 10:20:55 -04: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
2026-06-22 09:31:33 +02:00
2025-11-24 09:05:18 +00:00
2026-05-28 14:39:37 +00:00
2026-06-08 14:40:00 +01:00
2025-11-24 09:05:18 +00:00
2025-11-24 09:05:18 +00:00
2026-06-19 18:45:54 +02: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
2026-05-08 10:53:50 +01:00
2025-11-24 09:05:18 +00:00