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

Anton Vinogradov resolved IGNITE-27775.
---------------------------------------
    Resolution: Fixed

Merged to master by three PRs: 58e9d362374 (array, #12714), e8829158913 
(collection, #12721), ed01f2b4835 (map, #12728). Resolving as done. Please 
reopen or file a follow-up if some part of the scope is still missing.

> 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
>             Fix For: 2.19
>
>          Time Spent: 3.5h
>  Remaining Estimate: 0h
>
> 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