[
https://issues.apache.org/jira/browse/HBASE-9711?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lars Hofhansl updated HBASE-9711:
---------------------------------
Attachment: 9711-trunk.txt
Simple patch. Copying the bytes ahead of the String(...) only makes sense if
the compared portion is less than 1/2 of the passed byte[].
This is a simple patch. If I do not hear any objections I will commit this to
0.94+.
> Improve HBASE-9428 - avoid copying bytes for RegexFilter unless necessary
> -------------------------------------------------------------------------
>
> Key: HBASE-9711
> URL: https://issues.apache.org/jira/browse/HBASE-9711
> Project: HBase
> Issue Type: Sub-task
> Reporter: Lars Hofhansl
> Assignee: Lars Hofhansl
> Fix For: 0.98.0, 0.94.13, 0.96.1
>
> Attachments: 9711-trunk.txt
>
>
> Parent patch copies input for RegexFilter unconditionally.
> We should only do this if the KV portion into the passed byte[] is < 1/2 of
> the passed byte[]. Otherwise we waste cycles.
> Patch is trivial and will be coming momentarily.
--
This message was sent by Atlassian JIRA
(v6.1#6144)