+
Skip to content

Conversation

Finesse
Copy link

@Finesse Finesse commented Jun 7, 2025

These changes optimize the writeBuffer function, used by Builder.prototype.storeStringTail, by replacing the recursion with a cycle. The recursion caused the call stack to have 1 level per every 127 bytes of the input string.

@Finesse
Copy link
Author

Finesse commented Jun 8, 2025

BTW, what do you think about adding a Builder.prototype.storeBufferTail method? I need it in my project, and because writeBuffer is not exported, I have to copy it to my codebase.

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

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载