[
https://issues.apache.org/jira/browse/HBASE-1355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
stack resolved HBASE-1355.
--------------------------
Resolution: Fixed
Fix Version/s: 0.20.0
Committed.
> [performance] Cache family maxversions; we were calculating on each access
> --------------------------------------------------------------------------
>
> Key: HBASE-1355
> URL: https://issues.apache.org/jira/browse/HBASE-1355
> Project: Hadoop HBase
> Issue Type: Bug
> Reporter: stack
> Assignee: stack
> Fix For: 0.20.0
>
> Attachments: 1355.patch
>
>
> Profiling I see we are calculating max versions each time:
> {code}
> String value = getValue(HConstants.VERSIONS);
> this.cachedMaxVersions = (value != null)?
> Integer.valueOf(value).intValue(): DEFAULT_VERSIONS;
> {code}
> Caching it should improve things. Seeing that its 10% of memory when writing
> and about 10% of CPU. Reading its 10% of CPU according to profiler.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.