Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-3736

Kill IMAP processing chain

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.7.0
    • 3.8.0
    • IMAPServer
    • None

    Description

      Today we create a processor chain to manage IMAP request: each processor passes the request to the next until the request is managed.

      This leads to absurdly, needlessly long call stacks as we easily have 40+ processors.

      • This have a performance impact as feeling thread stacks do not come for free
      • Exceptions are hard to read (longer stacktraces)
      • Reading flame graphs is also harder!

      We should in my opinion just use a map to directly get the processor for a given request, simply using the request class as a key.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              btellier Benoit Tellier
              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 - 20m
                  20m