performance work resulting in markup.lite - #5
Draft
c-cube wants to merge 109 commits into
Draft
Conversation
this will be shared with upcoming markup.tiny
3x faster:
running test-lite:
markup writer:
wall_seconds=4.473357
minor_words=10,788,248,605
major_words=228,835,444
lite writer:
wall_seconds=1.446172
minor_words=526,166,350
major_words=216,989,118
OK: 840 HTML files serialized exactly
useful for perf
for the String token path it was inconsistent with the rest of the module
use C bindings to find next `<`, also to count `\n` (for locations).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MH5DguW7uz8zgqsrHqtcHV
just translate utf16 to utf8 on the fly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a fairly large PR, adding
markup.lite, which reimplements a subset of theMarkupAPI without the streaming abilities. The idea is to remove a lot of CPS/streaming overhead since we generally use this from astringsource. There's also optimizations in html writing, obtained by simply writing to aBuffer.trather than achar stream.