You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Vladimir Ozerov (JIRA)" <ji...@apache.org> on 2015/12/25 16:06:49 UTC
[jira] [Created] (IGNITE-2288) F.first(Collection) should use
index-based lookup for Lists.
Vladimir Ozerov created IGNITE-2288:
---------------------------------------
Summary: F.first(Collection) should use index-based lookup for Lists.
Key: IGNITE-2288
URL: https://issues.apache.org/jira/browse/IGNITE-2288
Project: Ignite
Issue Type: Task
Components: general
Affects Versions: ignite-1.4
Reporter: Vladimir Ozerov
Assignee: Vladimir Ozerov
Fix For: 1.6
There are lots of places in code where F.first(Collection) is used. Quite often passed collection is a List.
Instead of gettting iterator, we should do "get(0)" in these cases. This will allow us to prevent iterator creation.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)