| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
There was a problem hiding this comment.
Could we improve error handling in JS in general before we move all of this into C++? I believe there's likely not a big difference anymore as soon as that's fixed.
Sorry, something went wrong.
@BridgeAR There is also the cost of crossing the C++ and JavaScript boundary that'll still be there even after we improve the error creation performance. |
Sorry, something went wrong.
Sorry, something went wrong.
|
cc @nodejs/cpp-reviewers can you review? |
Sorry, something went wrong.
For the simple FS errors I think it would probably be pretty hard to make the JS error creation performance on-par with the C++ one if we want to hide internal frames. If we throw from C++, we hide them for free, the stack is only going to be captured when the user access error.stack, if they don't need it there's no cost paid. If we have to throw from JS, we need to capture the stack trace eagerly to hide internal frames. And not having to capture the stack trace is always going to be faster than having to do that. |
Sorry, something went wrong.
|
Shouldn't openDir (the C++ one) be also updated to remove the sync code now that it's in another function? |
Sorry, something went wrong.
@targos OpenDir is still used with callback implementation. After working on Sync functions, I'll move to callback implementations and make OpenDir like functions to only handle promise implementations. |
Sorry, something went wrong.
|
I see the needs-benchmark-ci label, but I don't see any benchmark ci. Just a possible local benchmarks in the PR description. |
Sorry, something went wrong.
|
@RafaelGSS I didn't follow up with the label I've added. I don't think it's necessary for this pull request since it's highly unlikely to cause regression. |
Sorry, something went wrong.
|
But would be great to have actual reliable numbers to share. People might see this PR when scrolling the CHANGELOG. |
Sorry, something went wrong.
PR-URL: #49705 Refs: nodejs/performance#106 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
| Back | FazBrowse Home | New Git URL |
Ref: nodejs/performance#106