[
https://issues.redhat.com/browse/IPROTO-155?page=com.atlassian.jira.plugi...
]
Nistor Adrian commented on IPROTO-155:
--------------------------------------
omg, what a mess! I'll try to clean that up in 4.3 also, but 4.4 rewrites that almost
completely. and the mess might be even bigger in 4.4 :)
FileDescriptors use too much memory
-----------------------------------
Key: IPROTO-155
URL:
https://issues.redhat.com/browse/IPROTO-155
Project: Infinispan ProtoStream
Issue Type: Bug
Affects Versions: 4.3.3.Final
Reporter: Dan Berindei
Assignee: Nistor Adrian
Priority: Minor
E.g. a single {{persistence.counters.proto}} {{FileDescriptor}} instance uses 967KB.
I'm not sure if the field documentation is useful for anything after the annotations
have been parsed, but it is kept in memory, and in a hotrod-client test each
{{DefaultCacheManager}} instance seem to need 3 instances of the string {{There is no
native byte type in protobuf so it is mapped to int32.}} from the
{{WrappedMessage.wrappedByte}} documentation.
Many lists are {{LinkedList}} instances, even though a {{LinkedList}} with 3 elements
uses more memory than an {{ArrayList}} with 10 elements. Some lists are also wrapped in
{{Collections$UnmodifiableRandomAccessList}} twice.
{{FileDescriptor}} {{HashMap}} fields ({{extendDescriptors}}, {{dependants}}) are never
queried by key.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)