Do not copy bytes when deserializing 55/111655/3
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 8 May 2024 03:01:56 +0000 (05:01 +0200)
committerRobert Varga <nite@hq.sk>
Wed, 8 May 2024 16:21:56 +0000 (16:21 +0000)
commit2454c1875ea1d0e59019984b4bb1c7de0c29cf41
tree5a91b7f7736663f022b803e756b9e3c763a754f4
parentcef058e3ec0c24100b823ecee29c904f4076cb0a
Do not copy bytes when deserializing

ByteBufUtil.getBytes() performs a deep copy of the contents of the
buffer. This is completely superfluous, as we can use the underlying
nioBuffer() directly.

JIRA: CONTROLLER-2115
Change-Id: I0a9f0ec7b22682cd41063db93921c159ba66b082
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
atomix-storage/src/main/java/io/atomix/storage/journal/JournalSerdes.java