You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Patrick Linskey (JIRA)" <ji...@apache.org> on 2012/08/29 18:24:08 UTC
[jira] [Created] (HTTPCLIENT-1227) DateUtils parsing triggers
ParseExceptions
Patrick Linskey created HTTPCLIENT-1227:
-------------------------------------------
Summary: DateUtils parsing triggers ParseExceptions
Key: HTTPCLIENT-1227
URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1227
Project: HttpComponents HttpClient
Issue Type: Improvement
Affects Versions: 4.2.1, 4.1.3, 4.2.2, 4.3 Final
Reporter: Patrick Linskey
DateUtils.DEFAULT_PATTERNS is not in the same order as the HTTP header spec [1], and uses a SimpleDateFormat.parse() method that creates exceptions. The upshot is that in the common case, extra parsing must happen, and an exception must be created (and its stack must be filled in). This leads to unfortunate additional CPU overhead.
[1] http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org
[jira] [Updated] (HTTPCLIENT-1227) DateUtils parsing triggers
ParseExceptions
Posted by "Patrick Linskey (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HTTPCLIENT-1227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Patrick Linskey updated HTTPCLIENT-1227:
----------------------------------------
Attachment: faster-dates.patch
> DateUtils parsing triggers ParseExceptions
> ------------------------------------------
>
> Key: HTTPCLIENT-1227
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1227
> Project: HttpComponents HttpClient
> Issue Type: Improvement
> Affects Versions: 4.1.3, 4.2.1, 4.2.2, 4.3 Final
> Reporter: Patrick Linskey
> Attachments: faster-dates.patch
>
>
> DateUtils.DEFAULT_PATTERNS is not in the same order as the HTTP header spec [1], and uses a SimpleDateFormat.parse() method that creates exceptions. The upshot is that in the common case, extra parsing must happen, and an exception must be created (and its stack must be filled in). This leads to unfortunate additional CPU overhead.
> [1] http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org
[jira] [Resolved] (HTTPCLIENT-1227) DateUtils parsing triggers
ParseExceptions
Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HTTPCLIENT-1227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oleg Kalnichevski resolved HTTPCLIENT-1227.
-------------------------------------------
Resolution: Fixed
Fix Version/s: 4.3 Alpha1
Good patch! Thank you for contributing it! Committed to both trunk and 4.2.x branch.
Oleg
> DateUtils parsing triggers ParseExceptions
> ------------------------------------------
>
> Key: HTTPCLIENT-1227
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1227
> Project: HttpComponents HttpClient
> Issue Type: Improvement
> Affects Versions: 4.1.3, 4.2.1, 4.2.2, 4.3 Final
> Reporter: Patrick Linskey
> Fix For: 4.2.2, 4.3 Alpha1
>
> Attachments: faster-dates.patch
>
>
> DateUtils.DEFAULT_PATTERNS is not in the same order as the HTTP header spec [1], and uses a SimpleDateFormat.parse() method that creates exceptions. The upshot is that in the common case, extra parsing must happen, and an exception must be created (and its stack must be filled in). This leads to unfortunate additional CPU overhead.
> [1] http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org
[jira] [Updated] (HTTPCLIENT-1227) DateUtils parsing triggers
ParseExceptions
Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HTTPCLIENT-1227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oleg Kalnichevski updated HTTPCLIENT-1227:
------------------------------------------
Fix Version/s: 4.2.2
> DateUtils parsing triggers ParseExceptions
> ------------------------------------------
>
> Key: HTTPCLIENT-1227
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1227
> Project: HttpComponents HttpClient
> Issue Type: Improvement
> Affects Versions: 4.1.3, 4.2.1, 4.2.2, 4.3 Final
> Reporter: Patrick Linskey
> Fix For: 4.2.2
>
> Attachments: faster-dates.patch
>
>
> DateUtils.DEFAULT_PATTERNS is not in the same order as the HTTP header spec [1], and uses a SimpleDateFormat.parse() method that creates exceptions. The upshot is that in the common case, extra parsing must happen, and an exception must be created (and its stack must be filled in). This leads to unfortunate additional CPU overhead.
> [1] http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org