Thoughts

mental health break ,./'"**^^$_---
I'm just so sick of bad code. This ruby permissions gem that brags about how fast it is is O(n) on looking up a permission by name. Adding a
permission does an O(n) lookup to see if the permission already exists; so adding n permissions is O(n^2). This is 25% of our request time at least on newly logged in request (I think we cache it sometimes). => https://github.com/chaps-io/access-granted/blob/b9de1888c8eca5d3e04756682beda95dac7649dd/lib/access-granted/role.rb#L57C7-L57C23 Edit: I don't think we cache it.
Link 4:28 p.m. Jun 17, 2025 UTC-4