Use switch statements on Javascript ui
Feature summary
Switch out elseif blocks with switch statements instead for faster performance
How would you like it to work
If you use switch statements instead of elseif blocks (is that how you call it?) you could get potentially better performance. I would do this, but my Git knowledge is lacking and I have 0 idea what i'm doing, so that's why I'm opening an issue here. I think I've seen some code here using switch statements.
Relevant links, screenshots, screencasts etc.
https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/master/js/ui/altTab.js at line 110 and 116 https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/master/js/ui/animation.js Some of this uses if and else. Now, it isn't as performance-heavy as making the entire feature just a bunch of elseif blocks but I would still want this changed!
There's other examples but I'm not scavenging the entire repo to find that