[
https://issues.apache.org/jira/browse/CAMEL-15761?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-15761:
--------------------------------
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.
was:
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.
> 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
> Priority: Major
> Fix For: 3.7.0
>
>
> 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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)