Skip to content

Remove use of deprecated type v8::FastApiTypedArray - #197

Merged
victorgomes merged 1 commit into
v8:node-ci-2024-06-03from
gahaas:2024-07-10_remove_typed_array
Jul 10, 2024
Merged

victorgomes merged 1 commit into
v8:node-ci-2024-06-03from
gahaas:2024-07-10_remove_typed_array

Conversation

@gahaas

@gahaas gahaas commented Jul 10, 2024

Copy link
Copy Markdown

In the examples where v8::FastApiTypedArray was used, there is actually no advantage of using V8's fast API calls instead of regular API calls. Therefore this CL just removes the fast API call targets instead of adjusting them.

@victorgomes
victorgomes merged commit d40ebc3 into v8:node-ci-2024-06-03 Jul 10, 2024
@gahaas
gahaas deleted the 2024-07-10_remove_typed_array branch July 10, 2024 12:19
pthier pushed a commit that referenced this pull request Jul 15, 2024
@ronag

ronag commented Jul 29, 2024 •

Copy link
Copy Markdown

@gahaas we have been benchmarking alternatives to v8::FastApiTypedArray and they are all significantly slower.¨

Refs: nodejs#54103
Refs: nodejs#54087

@gahaas

gahaas commented Jul 29, 2024

Copy link
Copy Markdown
Author

@ronag What exactly did you measure? If I remember correctly, the performance regression of removing v8::FastApiTypedArray was 6 CPU cycles per call. In a micro-benchmark that calls an empty API function, this regression was indeed clearly measurable, but as soon as I added reasonable workload, I could not measure a difference anymore.

@ronag

ronag commented Jul 29, 2024

Copy link
Copy Markdown

memmove 64 bytes.

@ronag

ronag commented Jul 29, 2024

Copy link
Copy Markdown

Pleas see the references

@gahaas

gahaas commented Jul 30, 2024

Copy link
Copy Markdown
Author

Thank you for making me aware of this issue. Could you please file a bug in the V8 bug tracker.

Please add information on how I can reproduce the issue locally.

Does node compile with PGO and LTO? I could imagine that the issue is that some API function calls get inlined in Chrome but not in node, as that would explain the different performance behavior.

@ronag

ronag commented Jul 30, 2024

Copy link
Copy Markdown

Does node compile with PGO and LTO? I could imagine that the issue is that some API function calls get inlined in Chrome but not in node, as that would explain the different performance behavior.

@targos Do you know someone that can answer this?

@ronag

ronag commented Jul 30, 2024

Copy link
Copy Markdown

victorgomes added a commit that referenced this pull request Aug 22, 2024
# Conflicts:
#	src/crypto/crypto_timing.cc
#	src/node_buffer.cc
#	src/node_external_reference.h
victorgomes pushed a commit that referenced this pull request Aug 22, 2024
pthier pushed a commit that referenced this pull request Oct 2, 2024
@ronag ronag mentioned this pull request Oct 21, 2024
2 of 7 tasks
victorgomes pushed a commit that referenced this pull request Nov 18, 2024
victorgomes pushed a commit that referenced this pull request Dec 18, 2024
victorgomes pushed a commit that referenced this pull request Jan 20, 2025
pthier pushed a commit that referenced this pull request Mar 17, 2025
pthier pushed a commit that referenced this pull request Jun 27, 2025
pthier pushed a commit that referenced this pull request Aug 21, 2025
victorgomes pushed a commit that referenced this pull request Sep 26, 2025
pthier pushed a commit that referenced this pull request Nov 21, 2025
victorgomes pushed a commit that referenced this pull request Feb 24, 2026
pthier pushed a commit that referenced this pull request Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants