Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-14488

Avoid unneeded memory allocations / cpu for disabled log levels

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 4.0-alpha1, 4.0
    • None
    • None

    Description

      add debug and trace log guard when the parameters creation implies memory allocations and / or cpu.

      Especially for StreamingInboundHandler/NettyStreamingMessageSender where createLogTag is allocating 64*2+UUID#toString bytes.

      Attachments

        Issue Links

          Activity

            People

              benoitw Benoit Wiart
              benoitw Benoit Wiart
              Benoit Wiart
              Jason Brown
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m