Skip to content
New issue

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

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

Already on GitHub? # to your account

Refactor component.js process() #4637

Merged
merged 2 commits into from
Jan 18, 2025
Merged

Conversation

jviide
Copy link
Contributor

@jviide jviide commented Jan 18, 2025

This pull request golfs down the process() function in component.js by removing the repeated .sort(depthSort) calls. As a small bonus this approach also allows skipping the initial sort call when the initial rerenderQueue size is 1.

@coveralls
Copy link

coveralls commented Jan 18, 2025

Coverage Status

coverage: 99.618% (+0.001%) from 99.617%
when pulling 18700ac on jviide:refactor-process
into 28a937c on preactjs:main.

@JoviDeCroock JoviDeCroock merged commit 765f48e into preactjs:main Jan 18, 2025
13 checks passed
@jviide jviide deleted the refactor-process branch January 18, 2025 18:08
@JoviDeCroock JoviDeCroock mentioned this pull request Feb 16, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants