Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-11351

Optimize - ProducerCache - Avoid creating new processor for each send if result processor

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.20.0
    • camel-core
    • None
    • Unknown

    Description

      When using producer template / producer cache and have a result processor to convert the result to X then it wraps using a set of internal processors / uow etc which creates a new objects which we can avoid.

      This was introduced by CAMEL-10308

      We can further optimise this to avoid creating a new instance of internal processor but use a shared instance. This is a hot spot as ProducerCache is used by producer template, and EIPs that sends to endpoints such as to and toD etc.

      Attachments

        1. Screen Shot 2017-05-28 at 09.51.48.png
          79 kB
          Claus Ibsen
        2. after.png
          106 kB
          Claus Ibsen

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: