You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "Vladimir Ozerov (JIRA)" <ji...@apache.org> on 2015/12/25 10:43:49 UTC
[jira] [Created] (IGNITE-2274) Avoid ArrayList creation for a
single element when possible.
Vladimir Ozerov created IGNITE-2274:
---------------------------------------
Summary: Avoid ArrayList creation for a single element when possible.
Key: IGNITE-2274
URL: https://issues.apache.org/jira/browse/IGNITE-2274
Project: Ignite
Issue Type: Sub-task
Components: general
Affects Versions: ignite-1.4
Reporter: Vladimir Ozerov
Assignee: Vladimir Ozerov
Fix For: 1.6
Profiling shown lots of ArrayList allocations. Investigation shown the following usual pattern in our code:
1) Create empty ArrayList.
2) Then add a single element to it at some point. When this addition happens, ArrayList allocates Object[10] array.
But in lots cases we know in advance that particular senario will contain only single entry in this collection.
Need to fix places where it is trivial to detect and handle.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)