Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
ContainerStateMachine:
- In loadSnapshot(..), it first reads the snapshotFile to a byte[] and then parses it to ContainerProtos.Container2BCSIDMapProto. The buffer copying can be avoided.
try (FileInputStream fin = new FileInputStream(snapshotFile)) { byte[] container2BCSIDData = IOUtils.toByteArray(fin); ContainerProtos.Container2BCSIDMapProto proto = ContainerProtos.Container2BCSIDMapProto .parseFrom(container2BCSIDData); ... }
- persistContainerSet(..) has similar problem.
Attachments
Issue Links
- links to