You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Jacob Barrett (Jira)" <ji...@apache.org> on 2022/03/31 03:12:00 UTC
[jira] [Resolved] (GEODE-9105) Remove transient allocations of SerializationContextImpl
[ https://issues.apache.org/jira/browse/GEODE-9105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jacob Barrett resolved GEODE-9105.
----------------------------------
Resolution: Won't Fix
> Remove transient allocations of SerializationContextImpl
> --------------------------------------------------------
>
> Key: GEODE-9105
> URL: https://issues.apache.org/jira/browse/GEODE-9105
> Project: Geode
> Issue Type: Improvement
> Components: serialization
> Reporter: Jacob Barrett
> Assignee: Jacob Barrett
> Priority: Major
>
> This object is allocated multiple times per execution of pretty much any operation. The object doesn't vary much between allocations and is mostly a grouping up stack variables. I believe the intent was to add properties to this context over time without changing the method signature for serialization with each release. Given this pattern of use I think it makes sense to implement a flyweight pattern here.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)