#47 CQuery creates too much elements if we limit it

已關閉
ranides4 年之前創建 · 0 條評論
ranides commented 4 年之前

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.
ranides4 年之前 關閉
Sign in to join this conversation.
未選擇里程碑
未指派成員
1 參與者
正在加載...
取消
保存
尚未有任何內容