Sanne/hibernate-search — comment on commit 39777fc9ce5d9cb774509122f849b7c2ed49463e
File: hibernate-search-engine/src/main/java/org/hibernate/search/query/engine/impl/HSQueryImpl.java line 108
By hferentschik:

> Exactly, it might have a value "undefined", that's why I added the other boolean definedMaxResults . . same logic on the rest of the patch, the cost of box > numbers is just too high.

sorry, got it now. I somehow thought there was no need for the undefined value anymore, but now I see the _definedMaxResults_ flag.

While I agree dealing with the two fields is not ideal, having to deal with "might be null" is even worse imho..

> fair enough. You are saying autoboxing is a big overhead? Would JIT not take care of this?