I noticed that Fields.indexOf(Field<?>) 
<https://github.com/jOOQ/jOOQ/blob/version-3.11.0-branch/jOOQ/src/main/java/org/jooq/impl/Fields.java#L267>
 
does a linear search and I thought that this might benefit from caching.

Note: This is just speculation. I have not written any benchmarks.

But if it were to be optimized with a cache:

   1. Should it be used for every type of Result? I don't think so. For 
   example, I don't think it makes sense to apply an optimization of a Result 
   which contains only 1 column and 1 row.
   2. Where should this cache live? It would make sense to store it on the 
   Result so it is optimized for each row, but is there a better place? What 
   if it were stored with the query?


Thanks.
JC Mann

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to