[
https://issues.apache.org/jira/browse/IGNITE-1466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15834067#comment-15834067
]
Pavel Tupitsyn commented on IGNITE-1466:
----------------------------------------
Igor, I think both from performance and readability points of view it will make
sense to use struct-based binary header approach.
Currently you use {{UnsafeReadInt}} to retrieve object type, flags, etc. It is
hard to figure out binary object header layout this way.
Instead, you can define a struct that reflects the header and retrieve fields
via a pointer. See {{BinaryObjectHeader}} in .NET part.
> CPP: Implement binary objects support.
> --------------------------------------
>
> Key: IGNITE-1466
> URL: https://issues.apache.org/jira/browse/IGNITE-1466
> Project: Ignite
> Issue Type: Task
> Components: platforms
> Affects Versions: 1.1.4
> Reporter: Vladimir Ozerov
> Assignee: Pavel Tupitsyn
> Labels: cpp, roadmap
> Fix For: 1.9
>
>
> We need to support portable objects in the same way as it is done in .Net and
> Java: if some flag ({{keepBinary}}) is set, then we should return not real
> object, but rather a wrapper around it.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)