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

camel-core - Optimize base converters

    XMLWordPrintableJSON

Details

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

    Description

      Working on optimizing the type converters from camel-base to be source code generated as a single class with big if .. else for doing converters.

      This makes Camel faster and smaller

      • reduces the classes loaded as there are no lambdas classes for each converter
      • does not register in the doublemap with from/to which reduces from 21kb to 3kb heap memory
      • likely faster than the map lookup and with the lambda call

      Before this prototype then DefaultTypeConverterRegistry was the 2nd biggest dominator from Camel (context biggest). Now its down to less than 3kb

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: