Efficiency improvements in AbstractRowReader

Description

Profiling one of our benchmarks I was pointed to a couple of low hanging fruits in the implementation of AbstractRowReader : its constructor could be simplified, the pre-computed cache of `entityInitializerByEntityReference` is sometimes not used at all (so it's worthwhile to create this lazily), and the iteration on entity initializers is extremely hot, can be optimised by iterating on an array.

Most interestingly, the combination of these improvements also lead to having much less and simpler code.

Activity

Show:
Fixed

Details

Assignee

Reporter

Fix versions

Priority

Created June 3, 2021 at 12:57 PM
Updated June 14, 2021 at 3:36 PM
Resolved June 3, 2021 at 12:59 PM