fespinoza / LinkedIdeas

A macOS/iOS apps to treat ideas as links of concepts.
http://fespinoza.github.io/LinkedIdeas/
MIT License
364 stars 17 forks source link

Performance improvement: link creation and moving concepts #119

Closed fespinoza closed 5 years ago

fespinoza commented 5 years ago

Using the app in retina display was pretty much impossible due to high CPU usage, checking instruments showed that most of that work was due the continuous recalculation of the size of the concept's strings, which in very few cases actually changes

Then, this PR is mostly about caching that calculation and invalidating when needed.

This makes the app usable on retina displays