Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-2918

Avoid Spillable bag overhead where possible

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.11
    • None
    • None

    Description

      We use BagFactory.newDefaultBag() liberally, and pay a price – each such bag registers with the spillable memory manager, and if we allocate a lot of tiny bags, we wind up paying for maintaining and cleaning up the internal linked list of weak references.
      In many cases, we know a-priori that the bags are smal, and should probably be creating non-spillable bags for those cases.

      Attachments

        1. PIG-2918.patch
          9 kB
          Dmitriy V. Ryaboy

        Activity

          People

            dvryaboy Dmitriy V. Ryaboy
            dvryaboy Dmitriy V. Ryaboy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: