-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
src: replace deprecated v8::FastApiTypedArray
#54103
base: main
Are you sure you want to change the base?
Conversation
I'm not sure about the changes here, but I can update the other uses if they are correct. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #54103 +/- ##
==========================================
- Coverage 87.07% 87.07% -0.01%
==========================================
Files 643 643
Lines 181583 181587 +4
Branches 34886 34887 +1
==========================================
- Hits 158114 158109 -5
+ Misses 16751 16748 -3
- Partials 6718 6730 +12
|
Seems significantly slower. I would propose we stick with the deprecated api until there is a faster alternative or until it's been removed. |
I had similar results with the copy pr |
@@ -1129,14 +1129,16 @@ void SlowIndexOfNumber(const FunctionCallbackInfo<Value>& args) { | |||
} | |||
|
|||
int32_t FastIndexOfNumber(v8::Local<v8::Value>, | |||
const FastApiTypedArray<uint8_t>& buffer, | |||
v8::Local<v8::Object> buffer, |
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.
This is actually slower in V8 v12.8 (by a significant margin).
Refs: https://chromium-review.googlesource.com/c/v8/v8/+/5691777