systemml-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "bd2019us (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SYSTEMML-2529) Minor perform boost if you replace replaceAll() with replace()
Date Sun, 21 Apr 2019 02:52:00 GMT

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

bd2019us updated SYSTEMML-2529:
-------------------------------
    Attachment: SYSTEMML-2529.patch

> Minor perform boost if you replace replaceAll() with replace()
> --------------------------------------------------------------
>
>                 Key: SYSTEMML-2529
>                 URL: https://issues.apache.org/jira/browse/SYSTEMML-2529
>             Project: SystemML
>          Issue Type: Improvement
>            Reporter: bd2019us
>            Priority: Minor
>              Labels: pull-request-available
>         Attachments: SYSTEMML-2529.patch
>
>
> Since replaceAll() does not use a regex expression, you can use replace() instead and
bypass the performance overhead associated with compiling the replaceAll() regex.
> Affected file
>  * src/main/java/org/apache/sysml/utils/GenerateClassesForMLContext.java



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

Mime
View raw message