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

efficient-err-stack #87

Merged
merged 2 commits into from
Jul 10, 2022
Merged

efficient-err-stack #87

merged 2 commits into from
Jul 10, 2022

Conversation

komuw
Copy link
Owner

@komuw komuw commented Jul 9, 2022

Instead of using stack []uintptr to represent an errors stacktrace,
use stack [4]uintptr instead.
This idea is taken from golang/xerrors.
see: https://github.com/golang/xerrors/blob/65e65417b02f28de84b55f16b46a1e789149973a/frame.go#L13-L16

@komuw komuw merged commit d254d75 into main Jul 10, 2022
@komuw komuw deleted the efficient-err-stack branch July 10, 2022 05:56
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.

1 participant