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

camel-core - Optimize TimeUtils to calculate without regexp

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

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

    Description

      This class has a number of regexp for parsing time from human format to millis.

      The profile says this class takes up 7kb due to all those regexp patterns. We can make this code use old fashioned code that checks for > 24 and all of that and build the output.

      Then its a tiny class in size.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment