[ 
https://issues.apache.org/jira/browse/IGNITE-27775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikolay Izhikov reassigned IGNITE-27775:
----------------------------------------

    Assignee: Nikolay Izhikov

> Write typed collections Ignite way
> ----------------------------------
>
>                 Key: IGNITE-27775
>                 URL: https://issues.apache.org/jira/browse/IGNITE-27775
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Nikolay Izhikov
>            Assignee: Nikolay Izhikov
>            Priority: Major
>
> Currently, many typed collections and array written by IDTO autogenerated 
> code write in not efficient way:
> {code:java}
> IDTO {
>     UUID[] nodeIds;
> }
> IDTOSerializer {
>     write() {
>          U.writeArray(out, obj.nodeIds);
>     }
> }
> U {
>     writeArray() {
>             for (T t : arr)
>                 out.writeObject(t);
>     }
> }
> {code}
> We can do it more efficiently if generate code based on generic collection 
> argument. For example:
> {code:java}
> IDTOSerializer {
>     write() {
>             for (UUID t : obj.nodeIds)
>                 U.writeUUID(t);
>     }
> }
> {code}



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

Reply via email to