You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Sean Busbey (JIRA)" <ji...@apache.org> on 2017/08/18 14:21:00 UTC
[jira] [Commented] (AVRO-1574) Suboptimal arraylist creation
[ https://issues.apache.org/jira/browse/AVRO-1574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16133016#comment-16133016 ]
Sean Busbey commented on AVRO-1574:
-----------------------------------
+1 pushing shortly.
> Suboptimal arraylist creation
> -----------------------------
>
> Key: AVRO-1574
> URL: https://issues.apache.org/jira/browse/AVRO-1574
> Project: Avro
> Issue Type: Improvement
> Components: java
> Affects Versions: 1.7.7
> Reporter: Zoltan Farkas
> Assignee: Kengo Seki
> Priority: Trivial
> Labels: beginner
> Attachments: AVRO-1574.patch
>
> Original Estimate: 5m
> Remaining Estimate: 5m
>
> in Schema.java:
> 1231 LockableArrayList<String> symbols = new LockableArrayList<String>();
>
> 1232 for (JsonNode n : symbolsNode)
>
> 1233 symbols.add(n.getTextValue());
> should be changed to:
> 1231 LockableArrayList<String> symbols = new LockableArrayList<String>(symbolsNode.size());
>
> 1232 for (JsonNode n : symbolsNode)
>
> 1233 symbols.add(n.getTextValue());
>
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)