[
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]