GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||
GeezerVison is showing github.com — url: improve invalid url performance by anonrig · Pull Request #49692 · nodejs/node Conversation
|
|
Review requested:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
0501c68 to
79415ed
Compare
|
@nodejs/tsc I've removed the Safari returns: None of them have the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I would keep the input, and even add the base, it can very hard to understand what is the error without seeing the input and base |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Benchmark CI: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Could there be a way to get the same performance improvements without removing helpful debugging information? If not, maybe we could use a flag to opt-in to the slower option that outputs the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Probably, although I'm not sure. This requires a similar approach to what |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
FWIW, I tend to agree with @aduh95 that removing error information for the sake of performance (on an error path!) does not benefit users. I thought that |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
How much is actually the performance hit when keeping the input as an attribute? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I do not think it's a good idea to remove important debug information in favor of performance. We can definitely improve the performance but debug information is more important. I had an open PR to improve the situation a lot and I have to get back to that again.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
147dd75 to
a9c408a
Compare
|
@BridgeAR @aduh95 @tniessen I've updated the implementation. Previously this pull request was 142% faster than Appreciate it, if you can review it once again. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
a9c408a to
29267d9
Compare
29267d9 to
c59b136
Compare
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Hey @BridgeAR, can you re-review this pull request, and remove your block? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I suspect he would still object since the URL isn't part of the message string, what's the cost of adding that back? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
I don't follow. URL was never part of the message string? Input is a property of the error object. On top of that I've also added base property to the error as well. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@anonrig ah, I'm probably mixing it up with another PR then, lgtm |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Adding to @nodejs/tsc agenda to resolve the block. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
There's no need for the TSC to intervene if you addressed the blocking comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Landed in c829c03 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
PR-URL: #49692 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
PR-URL: #49692 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
PR-URL: nodejs#49692 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.