Skip to content

grpc-js: Defer evaluating caller stack until an error #2232

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

Conversation

murgatroid99
Copy link
Member

This is an update to the change I made in #2109 that added caller stack traces to call errors. It turns out that getting the stack field of an error is a relatively expensive operation, so we don't do it in the hot path, and instead we wait until an error actually occurs. The goal is to fix the performance issues reported in #2231. #2109 is the only change that looks like it could possibly impact latency between 1.6.7 and 1.6.8.

@murgatroid99 murgatroid99 merged commit 40feac7 into grpc:@grpc/[email protected] Sep 21, 2022
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.

2 participants