[ 
https://issues.apache.org/jira/browse/FLINK-6768?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

boshu Zheng reassigned FLINK-6768:
----------------------------------

    Assignee: boshu Zheng

> Quadratic/Inefficient field lookup in PojoSerializer#ensureCompatibility
> ------------------------------------------------------------------------
>
>                 Key: FLINK-6768
>                 URL: https://issues.apache.org/jira/browse/FLINK-6768
>             Project: Flink
>          Issue Type: Improvement
>          Components: State Backends, Checkpointing, Type Serialization System
>    Affects Versions: 1.3.0, 1.4.0
>            Reporter: Till Rohrmann
>            Assignee: boshu Zheng
>            Priority: Minor
>
> In the {{PojoSerializer#ensureCompatibility}} method we call for each field 
> in the {{PojoSerializerConfigSnapshot}} the {{findField}} method which 
> executes a linear scan of the array of fields of the {{PojoSerializer}}. This 
> effectively has a quadratic runtime and could be done more efficiently. For 
> example, we could construct a {{HashMap}} containing the fields as keys and 
> the index as values. That way we would have a have a better lookup 
> performance.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to