Clone
Cédric Champeau
committed
on 14 Jan 17
Slightly optimize `DirectInstantiator`
This commit reworks the direct instantiator cache, by avoiding to recompute the parameter types of th… Show more
Slightly optimize `DirectInstantiator`

This commit reworks the direct instantiator cache, by avoiding to recompute the parameter types of the

constructor each time, as well as wrapped parameter types. The reason is that `getParameterTypes` clones

the underlying parameter type array, which creates garbage immediately collected, for each constructor

we test, for each instantiation.

Show less

master + 536 more