You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-dev@portals.apache.org by "bd2019us (JIRA)" <ji...@apache.org> on 2019/04/14 02:05:00 UTC

[jira] [Updated] (PLUTO-778) change String.replaceAll() to replace() to improve performance.

     [ https://issues.apache.org/jira/browse/PLUTO-778?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

bd2019us updated PLUTO-778:
---------------------------
    Attachment: 1.patch

> change String.replaceAll() to replace() to improve performance.
> ---------------------------------------------------------------
>
>                 Key: PLUTO-778
>                 URL: https://issues.apache.org/jira/browse/PLUTO-778
>             Project: Pluto
>          Issue Type: Bug
>            Reporter: bd2019us
>            Assignee: Scott Nicklous
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: 1.patch
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Location:
> (1) pluto-container/src/main/java/org/apache/pluto/container/impl/RenderResponseImpl.java
> (2) pluto-taglib/src/main/java/org/apache/pluto/tags/BaseURLTag.java
> Since the string to be replaced is simple string literal that does not need to be compiled, i.e., not regular expression. Another API String.replace() should be used and recommended for better performance.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)