-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
Performance improvements for Hashtables, ForEach, and Where-Object #258
Comments
Another speed improvements:
|
Badgerati
added a commit
that referenced
this issue
May 21, 2019
Ran some performance tests over the branch with the changes, and the current develop branch; and looks quite good. develop:
Issue-258:
|
Awesome! Good job! |
Badgerati
added a commit
that referenced
this issue
May 22, 2019
Continuing with the changes I've also:
With this, here's the new stats:
|
Badgerati
added a commit
that referenced
this issue
May 23, 2019
Badgerati
added a commit
that referenced
this issue
May 23, 2019
Badgerati
added a commit
that referenced
this issue
May 23, 2019
Resolves #258 - Performance increases
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This issue is change the way certain functions work in Pode, to aid in improving its performance. All the following changes are quicker, and although in small cases they're negligible it could still matter for large files or hundreds of rapid requests.
The following changes are to be applied to code that gets called on web requests; general logic on initial server start isn't mandatory as it's called once.
ForEach-Object
to be replaced with a normalforeach
loop.Where-Object
to be replaced with aforeach
loop with anif
statement.hashtable
property references to be changed to indexing:$ht[$key] = $value
The text was updated successfully, but these errors were encountered: