How a Readonly Property Wrecked My Letta Desktop Performance
Are you telling me a readonly property is wrecking my performance?
I discovered that a simple script using scrollHeight to auto-scroll new messages in Letta Desktop was causing severe slowdowns. I assumed this readonly property was static and fast, but accessing it forces expensive layout recalculations every time. Instead of calculating the exact height, I switched to a large fixed number to maintain performance.
"I just assumed that readonly properties will always be pretty performant in general."