[ 
https://issues.apache.org/jira/browse/IGNITE-27775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18058155#comment-18058155
 ] 

Ignite TC Bot commented on IGNITE-27775:
----------------------------------------

{panel:title=Branch: [pull/12728/head] Base: [master] : No blockers 
found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}{panel}
{panel:title=Branch: [pull/12728/head] Base: [master] : No new tests 
found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#F7D6C1}{panel}
[TeamCity *--> Run :: All* 
Results|https://ci2.ignite.apache.org/viewLog.html?buildId=8857390&buildTypeId=IgniteTests24Java8_RunAll]

> 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
>          Time Spent: 3h 20m
>  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