[
https://issues.apache.org/jira/browse/IGNITE-27775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18102562#comment-18102562
]
Ignite TC Bot commented on IGNITE-27775:
----------------------------------------
The final merged changes only optimize generated serializers for internal
IgniteDataTransferObject collections; no public API, configuration, protocol
contract, or operational behavior changes.
> 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)