Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-11147

Avoid creating List of KeyValue in FilterBase#filterRowCells(List<Cell>)

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Trivial
    • Resolution: Later
    • None
    • None
    • None
    • None

    Description

      Currently a List of KeyValue's is always created:

          List<KeyValue> kvs = new ArrayList<KeyValue>(ignored.size());
      

      When passed ignored List is of KeyValue (which is the only implementation of Cell at the moment), the above step should be avoided.

      This would reduce creation of short-lived objects.

      Attachments

        Activity

          People

            Unassigned Unassigned
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: