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

Optimize URI decode and encode #1647

Merged
merged 1 commit into from
Oct 14, 2023
Merged

Conversation

lahma
Copy link
Collaborator

@lahma lahma commented Oct 14, 2023

This slows down test suite running a lot as suite goes trough each invalid character causing exceptions handling the program flow.

  • dispatch via custom error signaling to remove costly throws
  • minimize allocations

Running 262 suite in release mode from from console (dotnet test -c Release).

Old: Passed! - Failed: 0, Passed: 56283, Skipped: 11595, Total: 67878, Duration: 31 s - Jint.Tests.Test262.dll (net6.0)
New: Passed! - Failed: 0, Passed: 56283, Skipped: 11595, Total: 67878, Duration: 25 s - Jint.Tests.Test262.dll (net6.0)

* dispatch via custom error signaling to remove costly throws
* minimize allocations
@lahma lahma merged commit 8ebdc34 into sebastienros:main Oct 14, 2023
3 checks passed
@lahma lahma deleted the optimize-encode-decode branch October 14, 2023 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant