#47 CQuery creates too much elements if we limit it

Geschlossen
vor 4 Jahren geöffnet von ranides · 0 Kommentare
ranides kommentierte vor 4 Jahren

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.
ranides hat vor 4 Jahren geschlossen
Anmelden, um an der Diskussion teilzunehmen.
Kein Meilenstein
Niemand zuständig
1 Beteiligte
Laden…
Abbrechen
Speichern
Hier gibt es bis jetzt noch keinen Inhalt.