Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-22558

Optimize sending to yourself in DefaultMessagingService

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0
    • None

    Description

      As a result of studying the flamegraphs, it was discovered that when sending messages to yourself there are non-optimal sections of code:

      1. Initializing java.net.InetSocketAddress spends a lot of time for org.apache.ignite.internal.network.DefaultMessagingService#isSelf.
      2. Iterating through handlers in org.apache.ignite.internal.network.DefaultMessagingService#sendToSelf creates an unnecessary iterator.

      It would also be good to optimize the obviously non-optimal places:

      • org.apache.ignite.internal.network.serialization.PerSessionSerializationService#createClassDescriptorsMessages

      Attachments

        1. image (15).png
          54 kB
          Kirill Tkalenko

        Issue Links

          Activity

            People

              ktkalenko@gridgain.com Kirill Tkalenko
              ktkalenko@gridgain.com Kirill Tkalenko
              Ivan Bessonov Ivan Bessonov
              Votes:
              0 Vote for this issue
              Watchers:
              1 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 - 40m
                  40m