zhangqiongyu opened a new pull request, #2962: URL: https://github.com/apache/brpc/pull/2962
### What problem does this PR solve? Issue Number: No Problem Summary: No ### What is changed and the side effects? Changed: 1. The memory pool implementation has a potential null pointer exception; 2. When searching for RDMA Gid, switch to traversal from back to front, which can reduce **g_gid_tbl_len** assignment operations to **one**.This reduces useless instruction calls to the snippet below: ``` g_gid = gid; g_gid_index = i; found = true; ``` Side effects: - Performance effects: Engineering equivalence, performance improvement - Breaking backward compatibility: No --- ### Check List: - Please make sure your changes are compilable. - When providing us with a new feature, it is best to add related tests. - Please follow [Contributor Covenant Code of Conduct](https://github.com/apache/brpc/blob/master/CODE_OF_CONDUCT.md). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For additional commands, e-mail: dev-h...@brpc.apache.org