Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-21860

Improve memory reuse for heap memory in `HeapMemoryAllocator`

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.0
    • Fix Version/s: 2.4.0
    • Component/s: Spark Core
    • Labels:
      None

      Description

      In `HeapMemoryAllocator`, when allocating memory from pool, and the key of pool is memory size.
      Actually some size of memory ,such as 1025bytes,1026bytes,......1032bytes, we can think they are the sameļ¼Œbecause we allocate memory in multiples of 8 bytes.
      In this case, we can improve memory reuse.

        Attachments

          Activity

            People

            • Assignee:
              10110346 liuxian
              Reporter:
              10110346 liuxian
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: