-
Notifications
You must be signed in to change notification settings - Fork 31.2k
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
Node-API V8 Fast API #54731
Comments
Multi-engine support is still a design constraint for napi, as far as I'm aware, so I don't see how that could possibly work - V8's fast API is incredibly V8-centric. |
Similar to V8 we could create a constrained mode in Node-API that in V8 case could be implemented with fast api and in other engines would just fallback to normal implementation. |
We have discussed adding the new API that adds the V8 Fast API support in Node-API team meeting. |
There has been no activity on this feature request for 5 months. To help maintain relevant open issues, please add the
never-stale
|
@vmoroz any updates? |
Here's the information about Issue #54731: Node-API V8 Fast API: Problem:
Proposed Feature:
Alternatives Considered:
Additional Details: For more information, you can visit the issue page. |
👍
Let's start by creating a plan. 1. **Understand the Problem:**
I'll start by executing the first step to understand the problem and explain the concept of the V8 Fast API. Step 1: Understand the Problem and Concept of V8 Fast APIWhy Node-API Methods Could Be Faster in Certain CasesNode-API (N-API) provides a stable API for building native addons in Node.js. It abstracts the underlying JavaScript engine, allowing developers to write addons without worrying about changes in V8 (the JavaScript engine used by Node.js). However, the generality of N-API can lead to performance overhead in certain cases, where direct interaction with the V8 engine could be more efficient. Concept of V8 Fast APIThe V8 Fast API is a mechanism provided by the V8 JavaScript engine that allows for more efficient function calls between JavaScript and native code. It is designed to minimize the overhead associated with these calls by using a more streamlined calling convention. This can lead to significant performance improvements for operations that are called frequently or involve intensive computation. Next StepsTo proceed with Step 2, I'll identify possible solutions for adding support for the V8 Fast API in Node-API, and explore any existing discussions, issues, or pull requests related to this topic. Let's perform a search for any relevant discussions or pull requests in the V8 Fast API in Node-APIProblem DescriptionNode-API methods could be optimized for better performance in certain scenarios. Proposed SolutionThe proposal is to add support for V8 Fast API, which can potentially make Node-API methods faster. Supporting Details
You can find more details and the complete context by visiting the issue page. Do reach out if anything. |
What is the problem this feature will solve?
Node-API methods could be faster in certain cases
What is the feature you are proposing to solve the problem?
Somehow add support for V8 Fast API.
What alternatives have you considered?
No response
The text was updated successfully, but these errors were encountered: