[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


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.

Reply via email to