Skip to content
This repository has been archived by the owner on Nov 16, 2020. It is now read-only.

Blazing fast HTML escaping. #56

Merged
merged 3 commits into from
Jun 8, 2019
Merged

Conversation

MrMage
Copy link
Contributor

@MrMage MrMage commented May 2, 2019

Resulting in 10x-100x (seriously) speedups across the board. And the common case where no replacements are needed actually benefits the most!

Screen Shot 2019-05-02 at 10 41 30

Screen Shot 2019-05-02 at 10 41 45

@MrMage
Copy link
Contributor Author

MrMage commented May 2, 2019

This also yields a ~13% improvement in the old LeafTests.testRenderPerformance():

Screen Shot 2019-05-02 at 10 56 15

@MrMage
Copy link
Contributor Author

MrMage commented May 2, 2019

The remaining CI failure is unrelated to this PR, but we may want to only run these benchmarks in Release mode (they take much longer in Debug mode).

@MrMage
Copy link
Contributor Author

MrMage commented Jun 6, 2019

Friendly ping @tanner0101 :-)

@tanner0101 tanner0101 added the enhancement New feature or request label Jun 8, 2019
Copy link
Member

@tanner0101 tanner0101 left a comment

Choose a reason for hiding this comment

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

Thanks, @MrMage !

I've opened an issue here to port these changes to LeafKit for Vapor 4: vapor/leaf-kit#17

@tanner0101 tanner0101 merged commit c9ff5f0 into vapor:master Jun 8, 2019
@penny-coin
Copy link

Hey @MrMage, you just merged a pull request, have a coin!

You now have 29 coins.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants