abi-stable-node icon indicating copy to clipboard operation
abi-stable-node copied to clipboard

Burn down list of issues raised by module owners

Open mhdawson opened this issue 8 years ago • 11 comments

Community reported issues:

  • [ ] Microtask queue interaction with N-API (https://github.com/nodejs/abi-stable-node/issues/279)
  • [ ] Callback to js from native threads (https://github.com/nodejs/abi-stable-node/issues/279#issuecomment-336061708)
  • [x] 3x perf overhead in napi version of native-hdr-histogram (https://github.com/nodejs/node-addon-api/issues/102) (@digitalinfinity)
  • [x] Convert.js not updating dependencies in binding.gyp (https://github.com/nodejs/node-addon-api/issues/98) (@sampsongao)
  • [x] Make Buffer extend Uint8Array (https://github.com/nodejs/node-addon-api/issues/109) (@sampsongao)
  • [x] Enforce HandleScope semantics more strictly (https://github.com/nodejs/node/issues/16175)
  • [ ] Resolve promises asynchronously without napi_create_async_work (https://github.com/nodejs/node/issues/15604)

mhdawson avatar Oct 12 '17 17:10 mhdawson

I'll edit the issue to include the links to the issues that are being tracked by this meta-issue

digitalinfinity avatar Oct 12 '17 18:10 digitalinfinity

https://github.com/nodejs/abi-stable-node/issues/279

mhdawson avatar Oct 13 '17 19:10 mhdawson

@mhdawson I've added a few issues here- feel free to update the issue to add any I might have missed (and I'll add more to this list as they come in)

digitalinfinity avatar Oct 13 '17 21:10 digitalinfinity

@digitalinfinity thanks !

mhdawson avatar Oct 16 '17 15:10 mhdawson

  • [ ] create custom env - when creating an async worker, you may want to manipulate env to be with another isolate. A bit closer to Node ENV.

YafimK avatar Oct 25 '17 04:10 YafimK

Thanks @YafimK - can you create a separate issue in nodejs/node with more details on what change you'd like to see, perhaps with the use case- I can then update the above list and link to that issue.

digitalinfinity avatar Oct 25 '17 21:10 digitalinfinity

For node-native-histogram, I've determined that the benchmark is not doing a significant amount of work, so its effectively just measuring the difference between napi_call_function and nan's function call API. Given that, I don't think we have to necessarily address this immediately since in most benchmarks where the benchmark does non-trivial work, the overhead difference would be less significant and so I'll check this off our list. However, I'll continue to look at whether there are more clever things we can do to reduce the absolute difference in overheads but napi_call_function will always have greater overhead since it's a more general API than nan.

digitalinfinity avatar Dec 07 '17 19:12 digitalinfinity

https://github.com/MayhemYDG/iltorb/tree/napi documents a slight memory leak wrt. V8 bindings.

gabrielschulhof avatar Jun 14 '18 17:06 gabrielschulhof

https://github.com/MayhemYDG/iltorb/pull/70#issuecomment-397127385

gabrielschulhof avatar Jun 14 '18 23:06 gabrielschulhof

Hi everyone I want report this issue https://github.com/kelektiv/node.bcrypt.js/issues/709 developers are starting use ative addons in worker_threads so they need to refactor to implement a context aware addon.

NickNaso avatar Mar 24 '19 21:03 NickNaso

We discussed a possible solution to the accumulation of native finalizers during a tight loop that creates wrapped objects here:

https://github.com/nodejs/node-addon-api/issues/1140

gabrielschulhof avatar Feb 25 '22 16:02 gabrielschulhof