Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace askama_escape in favor of v_htmlescape #2402

Closed
wants to merge 1 commit into from
Closed

Replace askama_escape in favor of v_htmlescape #2402

wants to merge 1 commit into from

Conversation

zzau13
Copy link
Contributor

@zzau13 zzau13 commented Oct 11, 2021

PR Type

Refactor/Other

PR Checklist

  • A changelog entry has been made for the appropriate packages.
  • Format code with the latest stable rustfmt.
  • (Team) Label with affected crates and semver status.

Overview

I have already uncoupled the crates bytes from v_escape. This version is several times faster as it is optimized with SIMD instructions.

@robjtede robjtede added A-files project: actix-files B-semver-patch labels Oct 11, 2021
@robjtede
Copy link
Member

robjtede commented Oct 11, 2021

I decided on askama_escape in this PR because of it's better compile time, is v_htmlescape any closer to this goal now?

The rationale is that this is not called very often at all and as such it is better for consumers of actix-web to have improved compile times when using actix-files.

@zzau13
Copy link
Contributor Author

zzau13 commented Oct 11, 2021

It is not so much and yes, I can reduce the compilation time a lot, there are many things that were for testing.
image

I will notify you when I make the change.

@robjtede robjtede marked this pull request as draft October 20, 2021 22:25
@robjtede robjtede added this to the actix-web post-v4 milestone Nov 24, 2021
@robjtede
Copy link
Member

robjtede commented Mar 1, 2022

just doing some clean up, feel free to re-open if things change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-files project: actix-files B-semver-patch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants