AltimateAI / AltimateAI/altimate-code

perf: listTracesPaginated loads all traces into memory before slicing

Abierto
#667 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
811
Forks
134
Merge medio
3 d 2 h
PR fusionados (30 d)
50

Descripción

Found during v0.5.20 release review. Deferred because: requires embedding timestamps in filenames or a lightweight index — significant design work.

`listTracesPaginated` calls `Trace.listTraces(dir)` which reads and JSON-parses every trace file on disk, then slices the array. For users with thousands of traces, this is O(n) memory and CPU on every paginated request. The pagination API gives users the impression of efficiency while doing full-table-scan work underneath.

Flagged by: CTO, End User, Tech Lead, Chaos Gremlin (4/5 reviewers).

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.