Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-9105

Remove transient allocations of SerializationContextImpl

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • serialization
    • None

    Description

      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.

      Attachments

        Activity

          People

            jbarrett Jacob Barrett
            jbarrett Jacob Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: