Skip to content
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

Improve new IoOwn logging #2035

Merged
merged 1 commit into from
Apr 18, 2024
Merged

Improve new IoOwn logging #2035

merged 1 commit into from
Apr 18, 2024

Conversation

jasnell
Copy link
Member

@jasnell jasnell commented Apr 18, 2024

Avoid allocating the new string on every dereference. The previous iteration was done pretty quickly just to get something we can test with. I imagine we'll keep it so let's make it more performant.

@jasnell jasnell requested review from mikea and fhanau April 18, 2024 18:41
@jasnell jasnell requested review from a team as code owners April 18, 2024 18:41
@kentonv
Copy link
Member

kentonv commented Apr 18, 2024

I think allocating a string on every IoOwn is too heavy. And allocating one on every deference is really too heavy.

A much better approach would be to pass const std::type_info& as a parameter to DeleteQueue::checkFarGet(), then only turn it into a string if and when an error message needs to be generated.

@jasnell
Copy link
Member Author

jasnell commented Apr 18, 2024

That works too :-) ... done

Avoid allocating the new string on every dereference
@jasnell jasnell force-pushed the jsnell/improve-ioown-logging branch from 03caf07 to 1d589a1 Compare April 18, 2024 19:05
@jasnell jasnell merged commit 4bf1f72 into main Apr 18, 2024
10 checks passed
@kentonv kentonv deleted the jsnell/improve-ioown-logging branch April 18, 2024 20:25
garrettgu10 pushed a commit that referenced this pull request May 13, 2024
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.

None yet

2 participants