Jira issue originally created by user @FabioBatSilva:
I'm not sure if this is really possible..
but to improve performance we should consider generate custom entity persisters.
Now entity persister are not cached,
if we generate it, we can create performance improvement in hidrators, avoiding checks and sql generation every time that an persister is called.
Comment created by @beberlei:
This should be relatively easy in the first step by ust generate the RSM and SQL statements in the constructor and extending from the default persister.