When the MutableEntityEntryFactory and ImutableEntityEntryFactory implementations of replaced the single implementation of EntityEntryFactory, calls made to methods via interface became polymorphic call sites instead of a monomorphic call site. This has a huge impact on performance, especially in this hot code path. Another side effect of the changes to implement is that less methods are being inlined, which again impacts cpu performance
|