forked from apache/dubbo
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[More Optimize]Heartbeat skip serialize and deserialize (apache#7168)
* 对于心跳的Request、Response,序列化时获取已缓存的null对象的序列化后字节,反序列化时则赋值null,以降低心跳对CPU带来的开销。 * rename method getNullBytes(s) -> getNullBytesOf(s) * format code * Use byte array comparison to identify the event is heartbeats * Use NIO-ThreadLocal buffer to read event payload, to reduce mem cost.
- Loading branch information
1 parent
d70b151
commit 75f04bf
Showing
1 changed file
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters