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

Document GC conserving guidelines for contributors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • documentation
    • None
    • Reviewed

    Description

      LinkedIn put up a blog post with a nice concise list of GC conserving techniques we should document for contributors. Additionally, when we're at a point our build supports custom error-prone plugins, we can develop warnings for some of them.

      Source: http://engineering.linkedin.com/performance/linkedin-feed-faster-less-jvm-garbage

      • Be careful with Iterators
      • Estimate the size of a collection when initializing
      • Defer expression evaluation
      • Compile the regex patterns in advance
      • Cache it if you can
      • String Interns are useful but dangerous

      All good advice and practice that I know we aim for.

      Attachments

        1. HBASE-12615.patch
          56 kB
          M Linville

        Activity

          People

            misty M Linville
            apurtell Andrew Kyle Purtell
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: