You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Tzu-Li (Gordon) Tai (Jira)" <ji...@apache.org> on 2021/02/25 05:49:00 UTC

[jira] [Created] (FLINK-21498) Avoid copying when converting byte[] to ByteString in StateFun

Tzu-Li (Gordon) Tai created FLINK-21498:
-------------------------------------------

             Summary: Avoid copying when converting byte[] to ByteString in StateFun
                 Key: FLINK-21498
                 URL: https://issues.apache.org/jira/browse/FLINK-21498
             Project: Flink
          Issue Type: Bug
          Components: Stateful Functions
            Reporter: Tzu-Li (Gordon) Tai
            Assignee: Tzu-Li (Gordon) Tai


There's a few places in StateFun where we can be more efficient with byte[] to Protobuf ByteString conversions, by just wrapping the byte[] instead of copying, since we know that the byte array can no longer be mutated.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)