ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Ozerov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-4702) Optimize BinaryMarshaller field reading in case all object fields are of fixed size
Date Tue, 14 Feb 2017 14:45:42 GMT
Vladimir Ozerov created IGNITE-4702:
---------------------------------------

             Summary: Optimize BinaryMarshaller field reading in case all object fields are
of fixed size
                 Key: IGNITE-4702
                 URL: https://issues.apache.org/jira/browse/IGNITE-4702
             Project: Ignite
          Issue Type: Task
          Components: general
            Reporter: Vladimir Ozerov
             Fix For: 2.0


In order to get field position within {{BinaryObject}} we do the following:
1) Lookup schema
2) Get field order
3) Find field position in order
4) Jump to the field

If all object fields have fixed length, then it's body will always be of the same size, and
relative field positions will be constant. This also applicable to objects having only some
fields of known size, if these fields are on the head positions.

We can add this information to schema and modify lookup routine as follows:
1) Lookup schema
2) Get field position by field ID immediately
4) Jump to the field

This will save us from footer lookups thus decreasing overall field lookup time. It could
be especially important for queries.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message