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

camel-core - MainHelper load list from file in classpath to reduce memory

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.9.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      By static source code generate in java then we make the class take up memory space for string constants for all the component names. The class is about 20kb+ in size

      As we only need this during bootstrap, we could source code generate to a .properties file and load this file from classpath into a set, and then clear the set after use. Then there is no memory being hold up.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: