[
https://issues.apache.org/jira/browse/HBASE-11774?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrew Purtell updated HBASE-11774:
-----------------------------------
Attachment: HBASE-11774_v2.patch
bq. You can just avoid the visibility classes from the patch.
Would save a bit of work maybe but I think each change should stand on its own
and be complete. But yeah we will need these changes in HBASE-11553 also or
that patch would regress on this point.
bq. CellUtil.tagsIterator() used without the tags length check in
VisibilityUtils also
Attached v2 patch that includes this. Will commit shortly unless objection.
Thanks for the reviews!
All o.a.h.h.security.*.* tests pass locally.
> Avoid allocating unnecessary tag iterators
> ------------------------------------------
>
> Key: HBASE-11774
> URL: https://issues.apache.org/jira/browse/HBASE-11774
> Project: HBase
> Issue Type: Improvement
> Reporter: Andrew Purtell
> Assignee: Andrew Purtell
> Priority: Minor
> Fix For: 0.99.0, 2.0.0, 0.98.6
>
> Attachments: HBASE-11774.patch, HBASE-11774_v2.patch
>
>
> We can avoid an unnecessary object allocation, sometimes in hot code paths,
> by not creating a tag iterator if the cell's tag area is of length zero,
> signifying no tags present.
--
This message was sent by Atlassian JIRA
(v6.2#6252)