2009
Improving ColdFusion Builder Performance (Temporarily) When Editing Large Files
ColdFusion Builder No Comments »Over the past few days, one particular CFC in my current project has grown rather large (a few hundred lines of code), and as it grew larger it became harder and harder to edit it in ColdFusion Builder (the second beta): the editor would struggle to keep up with my typing, pausing for a few seconds before displaying the changes I'd made.ᅠ
Not being in the mood to try and break up that CFC into several smaller ones quite yet, I did some experimenting and came up with two short-term solutions to the problem:
-
The chief cause of the performance lag seems to be the syntax checking. You can turn off the syntax checking in the editor by going into Preferences, navigating to ColdFusion -> Editor Profiles -> Editor -> Syntax Checking and unchecking the "Enable Syntax Checking" box. The setting change takes place immediately (no need to restart Builder). The drawback of course is that the editor will no longer point out syntax errors until you change the setting back.
-
I discovered that collapsing the code blocks I wasn't currently working with also dramatically improved performance (I'm guessing that the syntax checker ignores the code in collapsed code blocks, which makes sense). You can selectively collapse code blocks manually by clicking on the minus signs in the line-numbering column to the left of your code, or you can right-click on the line-numbering column and select Folding -> Collapse All from the context menu to collapse all of the code and then just expand the parts of the file you're working on.
The drawback to this solution is that the collapsing/folding isn't preserved when you save the file:ᅠ if you close the file and open it again, all of the code will be visible. I couldn't find any option for preserving the current viewing state of the file.
Recent Comments