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

Improve partial indenting performance #1992

Merged
merged 1 commit into from
Sep 7, 2023

Conversation

mohd-akram
Copy link
Contributor

This is about 30% faster in my testing.

Related to #1991.

Copy link
Member

@jaylinski jaylinski left a comment

Choose a reason for hiding this comment

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

Can confirm this is about 3 times as fast in Firefox.

@jaylinski jaylinski added this to the 4.7.9 milestone Sep 6, 2023
@jaylinski jaylinski merged commit 08fddee into handlebars-lang:4.x Sep 7, 2023
15 checks passed
@mohd-akram mohd-akram deleted the perf-indent branch September 7, 2023 20:43
@aniude
Copy link

aniude commented Jan 19, 2024

@jaylinski has any schedule to release this issue? It seems that we meet the same problem.

@mohd-akram
Copy link
Contributor Author

mohd-akram commented Sep 5, 2024

Will probably have to revert this. Testing some more, this causes some excessive GC activity which actually makes things slower in some cases.

EDIT: This issue seems to only happen in Chrome/Node.js, and only sometimes. In both Firefox and Safari, this PR is faster. This happens in Firefox too. In Safari, this PR improves performance somewhat, but not worth it for the major drop in Chrome/Node.js.

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.

3 participants