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

Refactor Status to avoid large stack size in happy path #1368

Merged
merged 5 commits into from
Apr 5, 2023

Conversation

PragmaTwice
Copy link
Member

Follow the implementation of Status in RocksDB, google absl, doris and more, we refactor the Status to make it just a pointer (8 instead of 40 for libstdc++ std::string).

For happy path (OK status) with large probability, it benefits the performance.

Copy link
Contributor

@torwig torwig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tisonkun
Copy link
Member

tisonkun commented Apr 4, 2023

I remember I review a similar patch before, but I cannot find it now..

Good to merge for this one.

@torwig
Copy link
Contributor

torwig commented Apr 4, 2023

@tisonkun Yeah, I also had a strong feeling of déjà vu.

@PragmaTwice
Copy link
Member Author

Yeah, I used to submit this patch in #1330, but there is always an ICE in gcc9 during LTO.
It has been workarounded in d13dbfd, so this patch can be merged.

@PragmaTwice PragmaTwice merged commit 8812730 into apache:unstable Apr 5, 2023
@tisonkun
Copy link
Member

tisonkun commented Apr 5, 2023

@PragmaTwice That's it! I browse the first page of closed PRs and don't find it. That said, what a large traffic in the community recently 🤣

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.

4 participants