Files
releases/v1/topdown
Ville Vesilehto 70c8746ced perf(topdown): optimize json.remove and .filter (#8193)
Optimize `json.remove` and `json.filter` to reduce memory
allocations and copy overhead.

Changes:

- Pre-allocate result collections in `jsonRemove` using the
  source size as an upper bound.
- Refactor `jsonRemove` for Arrays to accumulate elements in
  a pre-allocated Go slice before creating the AST Array,
  avoiding intermediate allocations.
- Pre-allocate the root object in `pathsToObject` used by both
  built-ins.
- Optimize `ast.Object.Filter` (used by `json.filter`) for
  Arrays to avoid incremental `Append` allocations.

Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
2026-01-08 19:52:57 +01:00
..
2024-12-12 15:09:03 +01:00
2024-12-12 15:27:34 +01:00
2025-06-23 11:40:00 +02:00
2025-05-28 23:19:31 +02:00
2025-01-31 20:24:05 +01:00
2025-11-27 10:41:37 +01:00
2024-12-12 15:09:03 +01:00
2024-12-12 15:09:03 +01:00
2024-12-12 15:09:03 +01:00
2024-12-12 15:09:03 +01:00
2025-06-23 11:40:00 +02:00
2025-06-23 11:40:00 +02:00
2025-06-23 11:40:00 +02:00
2024-12-12 15:09:03 +01:00
2025-12-16 11:47:04 +01:00
2025-06-23 11:40:00 +02:00
2024-12-12 15:09:03 +01:00
2024-12-12 15:09:03 +01:00
2025-01-31 20:24:05 +01:00
2024-12-12 15:09:03 +01:00
2024-12-12 15:09:03 +01:00
2025-06-23 11:40:00 +02:00
2024-12-12 15:09:03 +01:00
2024-12-12 15:09:03 +01:00
2024-12-12 15:09:03 +01:00
2025-12-16 11:47:04 +01:00
2024-12-12 15:09:03 +01:00
2025-06-23 11:40:00 +02:00
2024-12-12 15:09:03 +01:00
2025-05-20 23:12:13 +02:00
2024-12-12 15:09:03 +01:00
2026-01-08 10:24:13 +01:00
2025-12-01 10:46:05 +01:00
2025-06-23 11:40:00 +02:00
2025-06-23 11:40:00 +02:00
2025-06-23 11:40:00 +02:00
2025-06-23 11:40:00 +02:00
2025-05-28 23:19:31 +02:00
2025-06-23 11:40:00 +02:00