Issue 165839
Summary Static analyzer result pages filter checkboxes are slow
Labels new issue
Assignees
Reporter 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;
    }
  }
}
```

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to