You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "Vladimir Ozerov (JIRA)" <ji...@apache.org> on 2015/11/20 09:23:10 UTC

[jira] [Created] (IGNITE-1961) Binary reader: do not read field position from footer in case of successful speculation.

Vladimir Ozerov created IGNITE-1961:
---------------------------------------

             Summary: Binary reader: do not read field position from footer in case of successful speculation.
                 Key: IGNITE-1961
                 URL: https://issues.apache.org/jira/browse/IGNITE-1961
             Project: Ignite
          Issue Type: Task
          Components: general, interop
    Affects Versions: ignite-1.4
            Reporter: Vladimir Ozerov
            Assignee: Vladimir Ozerov
            Priority: Critical
             Fix For: 1.5


Currently we are trying to speculatively guess field ID and order. If speculation succeeds (which is almost always true during normal deserialization) we have pretty cool performance gain.

However, when speculation succeeds we still reads field position from footer. There is no need for this actually. Instead, we can rely on the fact that stream is already positioned correctly.

To employ this technique we must ensure that when field is read, stream pointer is always set right after the field. Currently this is not the case for "unmarshal" and "doReadPortableObject" methods in reader. They must be reworked to allow for this opto.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)