[infinispan-issues] [JBoss JIRA] (IPROTO-130) Inefficent ProtobufUtil.fromWrappedByteArray(ImmutableSerializationContext ctx, byte[] bytes)
Nistor Adrian (Jira)
issues at jboss.org
Tue Jan 28 04:46:02 EST 2020
[ https://issues.redhat.com/browse/IPROTO-130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nistor Adrian updated IPROTO-130:
---------------------------------
Status: Open (was: New)
> Inefficent ProtobufUtil.fromWrappedByteArray(ImmutableSerializationContext ctx, byte[] bytes)
> ----------------------------------------------------------------------------------------------
>
> Key: IPROTO-130
> URL: https://issues.redhat.com/browse/IPROTO-130
> Project: Infinispan ProtoStream
> Issue Type: Bug
> Affects Versions: 4.2.5.Final, 4.3.2.Final
> Reporter: Nistor Adrian
> Priority: Major
> Fix For: 4.2.6.Final, 4.3.3.Final
>
>
> The implementation uses a ByteArrayInputStream that wraps the byte[], and then creates a CodedInputStream around it and this copies the input data to its own buffer. This should have been made more efficiently by building a CodedInputStream directly around the byte[] (which internally uses CodedInputStream.ArrayDecoder and doesn't need a buffer copy).
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the infinispan-issues
mailing list