Skip to content
This repository has been archived by the owner on Feb 25, 2021. It is now read-only.

In RenderBatchWriter, deduplicate strings only when safe to do so #1340

Merged

Conversation

SteveSandersonMS
Copy link
Member

We allow deduplication of HTML element and attribute names, plus whitespace text nodes / attribute values.

This is a partial implementation of #1330. It's the only part we plan to include in 0.6.0; others will come later.

We allow deduplication of HTML element and attribute names, plus whitespace text nodes / attribute values.
@SteveSandersonMS SteveSandersonMS added this to the 0.6.0 milestone Aug 21, 2018
@SteveSandersonMS
Copy link
Member Author

The AppVeyor failure is that it's failing to install Google Chrome. This has happened on AppVeyor before and continued until someone at AppVeyor (or maybe Chocolatey) updated something.

WriteString(frame.TextContent);
WriteString(
frame.TextContent,
allowDeduplication: string.IsNullOrWhiteSpace(frame.TextContent));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice :)

@SteveSandersonMS SteveSandersonMS merged commit 3d3eb01 into master Aug 22, 2018
@SteveSandersonMS SteveSandersonMS deleted the stevesa/renderbatch-size-reduction-the-cheap-parts branch August 22, 2018 13:53
SteveSandersonMS added a commit to SteveSandersonMS/BlazorMigration that referenced this pull request Nov 27, 2018
…tnet#1340)

We allow deduplication of HTML element and attribute names, plus whitespace text nodes / attribute values.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants