Skip to content

Fix performance issue for Mustermann::AST::Translator#escape#142

Merged
dentarg merged 1 commit intosinatra:mainfrom
ericproulx:performance_fix
Sep 3, 2024
Merged

Fix performance issue for Mustermann::AST::Translator#escape#142
dentarg merged 1 commit intosinatra:mainfrom
ericproulx:performance_fix

Conversation

@ericproulx
Copy link
Contributor

@ericproulx ericproulx commented Sep 1, 2024

Trying to get 100% coverage for #140

Close #140

@dentarg
Copy link
Member

dentarg commented Sep 1, 2024

@hsbt what do you think about this? was there any reason you added a method in #141?

@hsbt
Copy link
Contributor

hsbt commented Sep 2, 2024

This seems okay to me. I don't want to spend my time for keeping 100% coverage.

Copy link
Member

@dentarg dentarg left a comment

Choose a reason for hiding this comment

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

I ran mustermann/bench/uri_parser_object.rb from #141 on this change, it does not raise. It raised on main (6c9494b).

@dentarg dentarg changed the title Use constant to define URI_PARSER Fix performance issue for Mustermann::AST::Translator#escape Sep 3, 2024
@dentarg dentarg merged commit 72aaf61 into sinatra:main Sep 3, 2024
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.

Massive performance degragation 3.0 -> 3.0.2

3 participants