Skip to content

Conversation

@liuhenry946-oss
Copy link

What problem does this PR solve?

Implemented Arena::allocate_aligned in butil and applied it to RedisReply to solve the FIXME: "// FIXME(gejun): Call allocate_aligned instead."

Changes

  • Added allocate_aligned to butil::Arena.
  • Updated brpc::RedisReply to use aligned allocation.
  • Added unit tests in test/arena_unittest.cpp.

@wwbmmm
Copy link
Contributor

wwbmmm commented Dec 18, 2025

Please don't use automatic code formatter, which produce a lot of unrelated code diffs.

@liuhenry946-oss
Copy link
Author

@wwbmmm please check it

@liuhenry946-oss liuhenry946-oss force-pushed the optimize-redis-memory branch 3 times, most recently from 76fb61b to 0b869c3 Compare December 19, 2025 02:50
@liuhenry946-oss
Copy link
Author

@wwbmmm Could you please approve the workflows? Thanks!

@liuhenry946-oss liuhenry946-oss marked this pull request as draft December 19, 2025 03:29
@liuhenry946-oss liuhenry946-oss marked this pull request as ready for review December 19, 2025 03:29
@wasphin
Copy link
Member

wasphin commented Dec 21, 2025

Still lot of unexpected formation related changes, please re-check them, and commit the changes that nessesary only.

Git command like git add -p may be helpful.

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.

3 participants