You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2024/05/31 21:56:00 UTC

[jira] [Updated] (SPARK-48496) Use static regex Pattern instances in common/utils JavaUtils

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

ASF GitHub Bot updated SPARK-48496:
-----------------------------------
    Labels: pull-request-available  (was: )

> Use static regex Pattern instances in common/utils JavaUtils
> ------------------------------------------------------------
>
>                 Key: SPARK-48496
>                 URL: https://issues.apache.org/jira/browse/SPARK-48496
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 4.0.0
>            Reporter: Josh Rosen
>            Assignee: Josh Rosen
>            Priority: Major
>              Labels: pull-request-available
>
> Some methods in JavaUtils.java are recompiling regexes on every invocation; we should instead store a single cached Pattern.
> This is a minor perf. issue that I spotted in the context of other profiling. Not a huge bottleneck in the grand scheme of things, but simple and straightforward to fix.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org