-
Notifications
You must be signed in to change notification settings - Fork 153
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
check unexpected high bits for invalid characters #173
Conversation
passes tests now |
test/constructor-test.js
Outdated
'0000gg00', | ||
'ffffggff', | ||
'ffffggff', | ||
'hexadecimal' |
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.
Let's add .
, -
, /
. They all come before 0
in ASCII.
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.
@indutny added, and it passes!
Sorry for delay. I just benchmarked it, and don't see any significant performance improvement. Do you see it on your side? Benchmarks can be run with: SELF_ONLY=1 node benchmarks/index.js create |
I measured an average 5-10% improvement... but [assumedly] the GC totally throws it off, and I often measure +/-20% swings for both depending on their order in the benchmark stack. |
node version: v9.2.0 master:
PR:
|
@fanatid how did you get consistent results :P |
Sorry, was run with different |
@indutny good to merge? If not, I'll simply add the test? |
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.
LGTM, sorry for delay.
Hopefully this resolves that problem @indutny