#47 CQuery creates too much elements if we limit it

Zavřený
otevřeno před 4 roky uživatelem ranides · 0 komentářů
ranides okomentoval před 4 roky

net.ranides.assira.reflection.util.ServiceScannerTest#lazy

It is observed, that final result of CQuery is correct, but under the hood, mapping function (resolver in this case) is invoked more than necessary.

If we call for query.first, then resolve function is called twice.

If we limit query to 4 elements, , then resolve function is called 5 times.

`net.ranides.assira.reflection.util.ServiceScannerTest#lazy` It is observed, that final result of CQuery is correct, but under the hood, mapping function (`resolver` in this case) is invoked more than necessary. If we call for query.first, then `resolve` function is called twice. If we limit query to 4 elements, , then `resolve` function is called 5 times.
Přihlaste se pro zapojení do konverzace.
Bez milníku
Bez zpracovatele
1 účastníků
Načítání...
Zrušit
Uložit
Není zde žádný obsah.