[GitHub] [ignite] pavlukhin commented on issue #6917: IGNITE-12189 Implementation correct limit for TextQuery

2019-11-01 Thread GitBox
pavlukhin commented on issue #6917: IGNITE-12189 Implementation correct limit 
for TextQuery
URL: https://github.com/apache/ignite/pull/6917#issuecomment-548703356
 
 
   Once again about `List.sublist`.
   
   Unfortunately it is a common practice in Ignite. We do not have cheap 
performance measurement feedback loop, consequently we are trying to use faster 
approaches but possibly sacrificing code simplicity. There were a lot of cases 
from a real practice where a single "innocent" code line (not lock and not 
system call) caused visible performance drop.
   
   Also I can thing about another option. Apparently a collection coming to 
enqueue method is always a List. We can try to do a refactoring and change an 
argument type to List. Then List.sublist method could be used directly. 
Possibly, it deserves a separate ticket. What do you think?


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [ignite] pavlukhin commented on issue #6917: IGNITE-12189 Implementation correct limit for TextQuery

2019-10-30 Thread GitBox
pavlukhin commented on issue #6917: IGNITE-12189 Implementation correct limit 
for TextQuery
URL: https://github.com/apache/ignite/pull/6917#issuecomment-547872183
 
 
   Regarding `List.sublist`. Generally we should do a benchmark to check a 
performance impact. On the other hand we can extract a method `firstElements` 
doing a needed trick. Does it sound as over-complication?


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services