Yegor Kozlov created SLING-9247:
-----------------------------------

             Summary: Improve Performance Of Testing Ignored GET Parameters
                 Key: SLING-9247
                 URL: https://issues.apache.org/jira/browse/SLING-9247
             Project: Sling
          Issue Type: Improvement
          Components: Extensions
    Affects Versions: Dynamic Include 3.1.6
            Reporter: Yegor Kozlov
             Fix For: Dynamic Include 3.2.0


This is a follow-up on SLING-9045

_org.apache.sling.dynamicinclude.Configuration_ loads the list of ignored GET 
parameters into a _java.util.List_ which is further checked from 
_IncludeTagFilter_ via _List#contains_

Calling _List#contains_ in a loop is kind of a smell. I believe _java.util.Set_ 
will be a more appropriate container with fixed O(1) cost of _contains()_.

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to