commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "MIYABE Tatsuhiko (JIRA)" <j...@apache.org>
Subject [jira] Commented: (SANDBOX-189) CharBuffer is too slow.
Date Wed, 28 Mar 2007 05:09:32 GMT

    [ https://issues.apache.org/jira/browse/SANDBOX-189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12484710
] 

MIYABE Tatsuhiko commented on SANDBOX-189:
------------------------------------------

I made sure it just now.
Good job!

> CharBuffer is too slow.
> -----------------------
>
>                 Key: SANDBOX-189
>                 URL: https://issues.apache.org/jira/browse/SANDBOX-189
>             Project: Commons Sandbox
>          Issue Type: Improvement
>          Components: CSV
>    Affects Versions: Nightly Builds
>            Reporter: MIYABE Tatsuhiko
>
> It's too slow reading large field(about 10000 over) because of org.apache.commons.csv.CharBuffer.
> Change provideCapacity method to below or copy-paste org.apache.commons.collections.primitives.ArrayCharList.
>     public void provideCapacity(final int capacity) {
>         if (c.length >= capacity) return;
>         int newcapacity = capacity * 3 / 2 + 1;
>         char[] newc = new char[newcapacity];
>         System.arraycopy(c, 0, newc, 0, length);
>         c = newc;
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message