brpc icon indicating copy to clipboard operation
brpc copied to clipboard

feat(redis): implement Arena::allocate_aligned and apply to RedisReply

Open liuhenry946-oss opened this issue 1 week ago • 0 comments

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.

liuhenry946-oss avatar Dec 17 '25 13:12 liuhenry946-oss