
It turned out that getting properties and saving them to a variable outside of loops instead of accessing them everytime inside the loop can have significant impact on performance, so do that in Workspaces vfunc_allocate(). Here the impact is not that large, about 0.05 ms with 20 open windows, that still seems worth it though. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1743>