Skip to content

perf: centralize incremental tool-call args parsing and improve stream parsing#152

Merged
jakobhoeg merged 5 commits intomainfrom
feat/perf-improvements
Feb 24, 2026
Merged

perf: centralize incremental tool-call args parsing and improve stream parsing#152
jakobhoeg merged 5 commits intomainfrom
feat/perf-improvements

Conversation

@jakobhoeg
Copy link
Owner

Summary

This PR removes duplicated streaming tool-call argument parsing logic from core, transformers-js, and web-llm, and centralizes it in @browser-ai/shared.

It also changes argument extraction from repeated full-string rescans to incremental parsing with maintained parser state (O(n2) to O(n))

@vercel
Copy link

vercel bot commented Feb 24, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
built-in-ai Ready Ready Preview, Comment Feb 24, 2026 7:22pm

Request Review

@jakobhoeg jakobhoeg merged commit c309a09 into main Feb 24, 2026
7 checks passed
@jakobhoeg jakobhoeg deleted the feat/perf-improvements branch February 24, 2026 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant