You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2020/10/26 16:43:00 UTC
[jira] [Created] (CAMEL-15761) camel-core - Optimize TimeUtils to
calculate without regexp
Claus Ibsen created CAMEL-15761:
-----------------------------------
Summary: camel-core - Optimize TimeUtils to calculate without regexp
Key: CAMEL-15761
URL: https://issues.apache.org/jira/browse/CAMEL-15761
Project: Camel
Issue Type: Improvement
Components: camel-core
Reporter: Claus Ibsen
Fix For: 3.7.0
This class has a number of regexp for calculating time in human format.
The profile says this class takes up 6kb 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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)