GitHub user zzcclp reopened a pull request:

    https://github.com/apache/carbondata/pull/1982

    [CARBONDATA-2184]Improve memory reuse for heap memory in 
`HeapMemoryAllocator`

    The description in 
[SPARK-21860](https://issues.apache.org/jira/browse/SPARK-21860):
    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.
    
    Be sure to do all of the following checklist to help us incorporate 
    your contribution quickly and easily:
    
     - [ ] Any interfaces changed?  No
     
     - [ ] Any backward compatibility impacted?  No
     
     - [ ] Document update required?  No
    
     - [x] Testing done
            Please provide details on 
            - Whether new unit test cases have been added or why no new tests 
are required?
            - How it is tested? Please attach test report.
            - Is it a performance related change? Please attach the performance 
test report.
            - Any additional information to help reviewers in testing this 
change.
           
     - [ ] For large changes, please consider breaking it into sub-tasks under 
an umbrella JIRA. 
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/zzcclp/carbondata CARBONDATA-2184

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/carbondata/pull/1982.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1982
    
----
commit d5911880c37c463ed752d82343035a15f96aa81e
Author: Zhang Zhichao <441586683@...>
Date:   2018-02-17T16:55:04Z

    [CARBONDATA-2184]Improve memory reuse for heap memory in 
`HeapMemoryAllocator`
    
    The description in 
[SPARK-21860|https://issues.apache.org/jira/browse/SPARK-21860]:
    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.

----


---

Reply via email to