tonihele commented on PR #4502:
URL: https://github.com/apache/netbeans/pull/4502#issuecomment-1214368761

   Yeah, don't mind me too much. I'm not really reviewing per se. The only way 
I'm affiliated with Netbeans is that we have a NB platform based project 
(https://github.com/jMonkeyEngine/sdk/) and I occasionally come here to see 
what is cooking :D And you are doing a good job all which of course helps us in 
turn!
   
   That being said...
   
   > building HahsMaps/Sets takes CPU time too, so this would need more 
measurements and I also wanted to propose this PR quickly and it had to be 
simple as possible.
   
   It takes time yes. But when there is very little object count, none of this 
matters. Using arrays or hashing, nor creating the said hash. The difference is 
negligible and irrelevant. It starts to show difference (in favor of hashing / 
binary) when the object count increases. The current method of seeking objects 
is of linear complexity done inside a loop, I guess `x * n` then. With the 
alternative methods it would be something like `x * log n`. And the complexity 
of creating the tree is just linear, `n` too. But it is done only once. So it 
would win in the long run...
   
   But small thing in practice probably, I have no idea of the object counts or 
when/how/etc this is called. Just... food for thought :)


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to