[ 
https://issues.apache.org/jira/browse/PHOENIX-1280?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lars Hofhansl updated PHOENIX-1280:
-----------------------------------
    Attachment: 1280-WIP.txt

W.I.P. patch
* Reuses a single ImmutableBytesWritable for the one time usages
* Removes calls to unnecessary ensureKeyValue
* Saves one lookup into the map - since this is a TreeMap it will save a few 
comparisons (at least one).
* hashcode is not used since we're using a TreeMap (so ImmutableBytesWritable 
is good here)

Completely untested. Will run some tests, and (presuming not objection) will 
commit if I find no issues.


> ColumnProjectionFilter makes too many ImmutableBytesPtrs
> --------------------------------------------------------
>
>                 Key: PHOENIX-1280
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-1280
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Lars Hofhansl
>            Assignee: Anoop Sam John
>         Attachments: 1280-WIP.txt
>
>
> While tracing through allocated objects during some queries I find that many 
> ImmutableBytesPtr objects are created. One offender is ColumnProjectionFilter 
> which first creates the columns to be projected and then while scanning make 
> a new ImmutableBytesPtr for each single column that passes through the filter.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to