I was looking into why my editor is soo slow when tying in a large file. Using the profile events command I found this:
on_modified:
PackageResourceViewer.package_resource_viewer: 3.205s total, mean: 0.004s, max: 0.066s
g4.G4: 1.631s total, mean: 0.002s, max: 0.097s
Default.settings: 7.163s total, mean: 0.010s, max: 0.061s
The method looks really simple but it takes a max of 6ms to execute. Is this because calling view.settings() is expensive to construct or is this because any event listener has a high startup cost?