Closed Rubiidev-18 closed 9 months ago
maybe don’t use chatgpt
this isn’t even refactored, there’s just a “// expensive computations” if you want to make changes, please do so yourself, not with an ai
yeah I don't see any reason to memoize a single if statement also the actual better way would probably be to make none of the if statements compare anything and jus have a single variable that controls if it's showing or not so that there's less info to recheck and less of the same check repeated everywhere
Edit: better version: