You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Ivan Bessonov (Jira)" <ji...@apache.org> on 2024/01/04 07:16:00 UTC

[jira] [Created] (IGNITE-21198) Optimize memory usage of AbstractEventProducer#fireEvent

Ivan Bessonov created IGNITE-21198:
--------------------------------------

             Summary: Optimize memory usage of AbstractEventProducer#fireEvent
                 Key: IGNITE-21198
                 URL: https://issues.apache.org/jira/browse/IGNITE-21198
             Project: Ignite
          Issue Type: Improvement
            Reporter: Ivan Bessonov
            Assignee: Ivan Bessonov


In current implementation, most of listeners do their work synchronously and return already completed futures. In that cases there's no sense to allocate the entire array of futures and fill it.

Another reason for not allocating an array right away is the fact that we may have a big number of listeners, and allocating an array will be expensive and wasteful.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)