• 
      

    Optimize get_url_params_except().

    Review Request #15392 — Created Oct. 12, 2026 and updated

    Information

    Djblets
    release-7.x

    Reviewers

    get_url_params_except() iterated through the provided list of query
    argument exceptions for every key in the query string. This was more
    inefficient the more the larger the exception list.

    We now convert this to a set before iteration begins, making lookups
    more cheap.

    Unit tests pass.

    Summary ID
    Optimize get_url_params_except().
    `get_url_params_except()` iterated through the provided list of query argument exceptions for every key in the query string. This was more inefficient the more the larger the exception list. We now convert this to a `set` before iteration begins, making lookups more cheap.
    2d5edcecc7d288b455836a67ba10478231494390
    Checks run (2 succeeded)
    flake8 passed.
    JSHint passed.