[ https://issues.apache.org/jira/browse/SANDBOX-189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yonik Seeley resolved SANDBOX-189. ---------------------------------- Resolution: Fixed I just committed this change. Thanks for the patch Miyabe! > 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]