[ 
https://issues.apache.org/jira/browse/PHOENIX-1280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14144372#comment-14144372
 ] 

James Taylor commented on PHOENIX-1280:
---------------------------------------

What should we call it? BytesPtrToImmutableByteArray? :-)

Two points:
- if you're not using the ImmutableBytesPtr as a key in a Map, you can just 
reuse it as you've mentioned.
- if you're not doing many comparisons against it, ImmutableBytesWritable is a 
better choice, as the only difference is that ImmutableBytesPtr caches the hash 
code.

> 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
>
> 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