You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2016/05/31 02:26:12 UTC
[jira] [Resolved] (GROOVY-6950) StringGroovyMethods improve
performance
[ https://issues.apache.org/jira/browse/GROOVY-6950?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul King resolved GROOVY-6950.
-------------------------------
Resolution: Fixed
Fix Version/s: 2.4.7
Proposed PR#341 merged
> StringGroovyMethods improve performance
> ----------------------------------------
>
> Key: GROOVY-6950
> URL: https://issues.apache.org/jira/browse/GROOVY-6950
> Project: Groovy
> Issue Type: Improvement
> Components: groovy-runtime
> Reporter: lwh
> Assignee: Paul King
> Fix For: 2.4.7
>
>
> StringGroovyMethods has many issue:
> 1) Inefficient converting CharSequence to String. If do not convert, the method of CharSequence wiil twice faster.
> 2) IOGroovyMethods.readLines is slow, do not use it. readLines use a closue!
> 3) the methods of center/denormalize/expand/pad/strip are Inefficient, there is no need creat so many StringBuilders
> I'll fix this (on github) in a few days. Please help me check and merge it.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)