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 "Neil Griffin (Jira)" <ji...@apache.org> on 2021/12/15 16:59: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 ]

Neil Griffin updated PLUTO-778:
-------------------------------
    Fix Version/s: 3.1.2
                       (was: 3.1.1)

> 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
>    Affects Versions: 3.0.0, 3.0.1, 3.1.0
>            Reporter: bd2019us
>            Assignee: Neil Griffin
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.1.2
>
>         Attachments: 1.patch
>
>          Time Spent: 40m
>  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
(v8.20.1#820001)