Skip to content

Static analyzer result pages filter checkboxes are slow #165839

@annevk

Description

@annevk

E.g., for WebKit clicking "All Bugs" checkbox on https://build.webkit.org/results/Apple-Sequoia-Safer-CPP-Checks/302370%40main%20%285930%29/scan-build-output/StaticAnalyzer/WebCore/index.html can take quite a bit of time.

This is because the script goes row-by-row and changes the display property value of each row independently.* It would be much quicker if it used CSS better. For instance, the script could toggle enable/disable classes on the table element and CSS could use that in combination with the row classes to hide the relevant rows.


*I based this on this code which is not good for rendering performance:

function SetDisplay(RowClass, DisplayVal)
{
  var Rows = document.getElementsByTagName("tr");
  for ( var i = 0 ; i < Rows.length; ++i ) {
    if (Rows[i].className == RowClass) {
      Rows[i].style.display = DisplayVal;
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions