brpc
brpc copied to clipboard
feat(redis): implement Arena::allocate_aligned and apply to RedisReply
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::RedisReplyto use aligned allocation. - Added unit tests in
test/arena_unittest.cpp.