ruff
Reduce memory usage by dropping token-excess capacity and improve performance by approximating the initial tokens vec size
#25354
Merged

Reduce memory usage by dropping token-excess capacity and improve performance by approximating the initial tokens vec size #25354

MichaReiser
astral-sh-bot
codspeed
MichaReiser MichaReiser closed this 157 days ago
MichaReiser MichaReiser reopened this 157 days ago
MichaReiser MichaReiser changed the title View benchmark results Approximate token vec size to reduce regrows 156 days ago
MichaReiser MichaReiser closed this 156 days ago
MichaReiser MichaReiser reopened this 156 days ago
astral-sh-bot
MichaReiser Use estimated capacity for parser token source
5b636fa8
MichaReiser Shrink token buffer after parsing
744cf832
MichaReiser Use conservative token capacity estimate
7aed0ac8
MichaReiser Change to 10%
18746e82
MichaReiser Go up to 15% again
5879173e
MichaReiser MichaReiser force pushed from e02394f7 to 5879173e 156 days ago
astral-sh-bot
MichaReiser MichaReiser added parser
MichaReiser MichaReiser marked this pull request as ready for review 156 days ago
MichaReiser MichaReiser requested a review from dhruvmanila dhruvmanila 156 days ago
dhruvmanila
charliermarsh
charliermarsh approved these changes on 2026-05-25
charliermarsh
dhruvmanila Use remaining source for token capacity estimates (#25382)
2edc8c7b
MichaReiser MichaReiser closed this 154 days ago
MichaReiser MichaReiser reopened this 154 days ago
dhruvmanila
dhruvmanila approved these changes on 2026-05-26
MichaReiser
MichaReiser commented on 2026-05-26
MichaReiser Apply suggestion from @MichaReiser
68d03f8a
MichaReiser Use token growth buckets for initial capacity
1e4aafa9
MichaReiser
MichaReiser MichaReiser changed the title Approximate token vec size to reduce regrows Reduce memory usage by dropping token-excess capacity and improve performance by approximating the initial tokens vec size 154 days ago
MichaReiser MichaReiser merged 38562889 into main 154 days ago
MichaReiser MichaReiser deleted the micha/view-benchmark-token-capacity branch 154 days ago

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone