[ 
https://issues.apache.org/jira/browse/GROOVY-11904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18071093#comment-18071093
 ] 

Eric Milles commented on GROOVY-11904:
--------------------------------------

What modifier resolution?  The description is in the past tense.  What is the 
cost and usage of this resolution?  Adding complexity to shave nanoseconds is 
not a good tradeoff.

> Lookup table: O(1) instead of O(log n) binary search modifiers
> --------------------------------------------------------------
>
>                 Key: GROOVY-11904
>                 URL: https://issues.apache.org/jira/browse/GROOVY-11904
>             Project: Groovy
>          Issue Type: Improvement
>            Reporter: Daniel Sun
>            Priority: Major
>
> Refactored the modifier resolution process to use a pre-computed lookup table 
> instead of a binary search. This optimization reduces the lookup time 
> complexity from O(log n) to O(1), enhancing performance during high-frequency 
> modifier retrievals.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to