You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "ASF GitHub Bot (JIRA)" <de...@myfaces.apache.org> on 2018/08/06 18:49:00 UTC
[jira] [Commented] (MYFACES-4249) [perf] minor change in
CDataEndEscapeFilterWriter to not call str.charAt multiple times
[ https://issues.apache.org/jira/browse/MYFACES-4249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16570632#comment-16570632 ]
ASF GitHub Bot commented on MYFACES-4249:
-----------------------------------------
pnicolucci opened a new pull request #14: MYFACES-4249: Don't call charAt more than needed
URL: https://github.com/apache/myfaces/pull/14
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
> [perf] minor change in CDataEndEscapeFilterWriter to not call str.charAt multiple times
> ---------------------------------------------------------------------------------------
>
> Key: MYFACES-4249
> URL: https://issues.apache.org/jira/browse/MYFACES-4249
> Project: MyFaces Core
> Issue Type: Improvement
> Affects Versions: 2.2.12, 2.3.1
> Reporter: Paul Nicolucci
> Assignee: Paul Nicolucci
> Priority: Minor
> Fix For: 2.2.13, 2.3.2
>
>
> Currently we calll c2 = (char) str.charAt(off+i); when (char) str.charAt(off+i) was previously stored in the write method to variable c so we can easily just do the following c2=c and save some string manipulation.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)