-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Traverse without recursion #2168
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RobinTail
force-pushed
the
traverse-no-recursion
branch
from
November 14, 2024 22:16
261dcdc
to
8ce59b3
Compare
RobinTail
force-pushed
the
traverse-no-recursion
branch
from
November 14, 2024 22:25
33df221
to
c70baea
Compare
Merged
After fixing in #2169
|
Evaluation using tsx runner involved in both cases Key Observations
Conclusions
|
Summary of ImprovementsMemory Usage Reduction: ~17.14% |
RobinTail
commented
Nov 15, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
RobinTail
added a commit
that referenced
this pull request
Nov 20, 2024
![Kesaria Abramidze, 37](https://github.com/user-attachments/assets/31eb16f8-1e7f-40d8-83cd-3b4602eb5922) Kesaria Abramidze, 37 years young, one of Georgia's most well-known transgender women, was stabbed to death in her flat in the capital, Tbilisi, just a day after the country's parliament passed a major anti-LGBT bill. https://www.bbc.com/news/articles/cy0lnpn019xo Transgender women suffer too frequently from transphobic violence and cruelty, being the less protected social group. I'd like to raise an awareness of this problem. Humans should be creators — not killers. But most importantly, I want every transgender girl to have an opportunity to create applications quickly and, in general, learn to write code easily in order to receive job offers and leave dangerously transphobic territories for more favorable and civilized ones, and live happily there. Protect transgender women. ----------------------------- This version aims to improve the security and the overall development experience. In particular, the requirements for the Express version are increased, and you can now run the secure server exclusively. Alternative plural properties are replaced with universal singular ones supporting arrays. Specifying the method when creating an endpoint is now optional, which also makes it easier to assign endpoints on a same route for different methods. Memory consumption reduced for Routing traverse. Previously deprecated methods and properties have been removed, several public interfaces changed in order to enable features coming up later. - #2083 - #2087 - #2086 - #2100 - #2122 - #2139 - #2148 - #2128 - #2162 - #2167 - #2168 - #2172 - #2176 - #2175 - #2185 - #2187 - #2192 - #2193 - #2194
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Avoiding recursion should decrease memory consumption by replacing the utilization of call stack to a stack of entities to process
https://www.nearform.com/insights/tracking-memory-allocation-node-js/
Turned out that the performance is mostly affected by
assert(..., new Error())
pattern, partially introduced by #1371