Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Fix a BBEdit slow-down when editing multiple files Apps
I have been working in BBEdit a lot lately, with 20+ documents open at a time. I have found that after several hours of editing, BBEdit would become sluggish. Just about anything I would try to do (find and replace, cut and paste, even just typing) would be met by a a roughly one-second delay before the action would take place.

One of many ways in which BBEdit Doesn't SuckĀ® is that it has a remarkably long undo history. If you've got 20+ documents undergoing heavy editing, by the end of the day, that undo history is getting a little weighty (computationally speaking).

The Fix: Select 'Clear Undo History' from the Edit menu. Presto, no more slowdowns...

robg adds: As indicated in the comments below, the above fix actually won't work; quitting and restarting BBEdit is the only known cure at present. I'm leaving this 'un-hint' up, however, for those who may be searching for an answer to the problem. As you can read in the comments, according to the folks at BBEdit, the slowdown is due to an OS X 10.4 bug, which they've reported to Apple -- so hopefully it will be fixed in a future system update. For now, though, you'll have to quit/relaunch BBEdit if this happens to you...]
    •    
  • Currently 2.25 / 5
  You rated: 2 / 5 (4 votes cast)
 
[8,774 views]  

Fix a BBEdit slow-down when editing multiple files | 18 comments | Create New Account
Click here to return to the 'Fix a BBEdit slow-down when editing multiple files' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Fix a BBEdit slow-down when editing multiple files
Authored by: zeb on Sep 02, '05 10:24:49AM

I have a PHP application with 54 documents that I keep open in BBEdit for days or weeks at a time with each page undergoing heavy editing. I have never noticed a slow-down in performance... both on my new PM G5 2.3 and on my old PB G4 550. So I suspect that the performance degradation you speak of has a lot to due with available RAM and HD space.

---
..:: Zeb ::..

zebellis.com



[ Reply to This | # ]
Fix a BBEdit slow-down when editing multiple files
Authored by: dv8godd on Sep 02, '05 10:49:47AM

I experience the slowdown every once in a while myself...

but I have over a terrabyte of HD space... over 100gigs on my startup drive free... and 4gb of RAM on a dual 2ghz G5.

So I seriously doubt it's due to HD or RAM.



[ Reply to This | # ]
Fix a BBEdit slow-down when editing multiple files
Authored by: philipu on Sep 02, '05 10:49:59AM

i've definitely noticed the slowdown described above on my 1.67 powerbook g4 with 1.5gb ram and tens of gigs of free space on the drive.

hopefully flushing the undo history will do the trick. my firm believe that bbedit doesn't suck was beginning to weaken. it gets seriously slow. i usually notice it when i'm trying to select multiple lines of text.

seriously though, a modern text editor should not have problems like this. Nedit is blazingly fast under similar conditions, but i tend not to use it because it doesn't fit in my work flow the same way bbedit does.



[ Reply to This | # ]
Fix a BBEdit slow-down when editing multiple files
Authored by: zeb on Sep 02, '05 11:32:01AM

Hmmm, I wonder what else it could be? Oh well... I'll just consider myself lucky!

(of course, now that I've jinxed myself, it's good to know that there's a solution ;)

---
..:: Zeb ::..

zebellis.com



[ Reply to This | # ]
Fix a BBEdit slow-down when editing multiple files
Authored by: thornrag on Sep 02, '05 12:28:34PM

"I have never noticed a slow-down in performance... both on my new PM G5 2.3 and on my old PB G4 550."

Good for you! Impressive credentials and machine. The problem must be totally imaginary on our end.

But I keep having this dream, in which I've got even just a handful of documents open, in various configurations of drawers and single windows, scrolled to various positions vertically and horizontally, because they're huge documents with long lines. I keep copying and pasting, and BBEdit just gets slower and slower, even though I'm using powerful G5 towers. Scrolling goes one line at a time. Dragging to make a selection is a painstaking process. Closing and reopening documents doesn't help.

Next time I get trapped in this imaginary dreamworld, I'll see if I can convince my dream-self to try the damn hint. Maybe I'll dream that it works.



[ Reply to This | # ]
Fix a BBEdit slow-down when editing multiple files
Authored by: zeb on Sep 02, '05 02:03:33PM
Oh c'mon. I was trying to help by suggesting that the problem may in-fact be system-dependent. I've never noticed it, and I was trying to point out that I work in two different system environments with the same documents - information that is definitely helpful when trying to uncover the cause of any computer related issues. If we were able to come up with a different cause (and the fact that I don't experience the problem suggests that there is something else afoot), I would much rather seek an alternate solution than clearing my undo history. That is after all the main reason I hardly ever close my documents, and one of the reasons that BBEdit "Doesn't SuckĀ®". So my objective was not to impress others with my system. Lots of people have G5 towers. Sounds like you do too. What's your beef with me?

...

One may also find it very interesting that even though I have never noticed the "one-second delay" as noted in the hint, I have certainly experienced the slow scrolling while selecting.

---
..:: Zeb ::..

zebellis.com

[ Reply to This | # ]

Fix a BBEdit slow-down when scrolling
Authored by: lrivers on Sep 02, '05 06:57:00PM

There's a keyboard accelerator--press "option" whilst dragging the selection and whoot there it is. Documented, by the way...

Accelerated Scrolling
When clicking the arrows in a scroll bar, you can use the Command and Option keys to accelerate the scrolling. These shortcuts also apply if you use a mouse with a built-in scroll wheel.

Modifier          Scroll Speed
none              Normal
Command           2x accelerated
Option            3x accelerated
Command+Option    6x accelerated


[ Reply to This | # ]
Fix a BBEdit slow-down when editing multiple files
Authored by: EelBait on Sep 03, '05 04:25:27PM

In my case, BBEdit was taking forever to open various dialogs such as the "Find", "Open" or "Save" windows. Using spincontrol I found it was in some code that resolves symlinks. By removing all the alias files in "~/Library/Preferences/com.barebones.bbedit.PreferenceData/Recent Files & Folders" as well as the "Recent Folders & Favorites" directories, BBEdit no longer took forever to open those windows.



[ Reply to This | # ]
Fix a BBEdit slow-down when editing multiple files
Authored by: spnyc on Sep 02, '05 03:07:32PM

i experience this from time to time and the only thing that works for me is quitting and re-launching bbedit.

as an fyi, we're not having a group hallucination as i saw this on the bbedit list a couple weeks ago:

from a bbedit rep:
> There is a text drawing bug related to font caching in Mac OS X 10.4.x
> which can produce these symptoms (slow typing and redraw) in BBEdit
> and other apps. We have reported this problem to Apple and they are
> aware of it.



[ Reply to This | # ]
text drawing bug related to font caching in Tiger
Authored by: echo on Sep 02, '05 08:25:25PM

Thanks for bringing this up spnyc, or I would have, having started that post on the BBEdit list. It's a lag on redraw I'd never before seen in BBEdit. Thanks to this hint, I have another fix to try besides relaunch.



[ Reply to This | # ]
me too (seen slow down)
Authored by: randydarden on Sep 02, '05 03:48:36PM

I've seen the slow down too, though on more modest systems (PMG4 867, iBook G3 800). Often it's kind of a blessing in disguise: I'm too lazy to close documents, and navigating through them can get cumbersome, so a quick BBEdit quit and relaunch makes me more productive.



[ Reply to This | # ]
Fix a BBEdit slow-down when editing multiple files
Authored by: sjmills on Sep 03, '05 02:12:49PM
I use BBEdit very rarely, and it's an older version (6.1), and the only slowness I see is that it takes a very long time to launch, like it's trying to bind to a ton of frameworks or whatever.

[ Reply to This | # ]
Fix a BBEdit slow-down when editing multiple files
Authored by: suranyami on Sep 05, '05 09:20:01AM

I have had this problem ever since upgrading to Tiger. I contacted Barebones, and this was their response:

The problem you're experiencing is due to a bug in the OS which we have isolated and reported to Apple. In the meantime, quitting and relaunching BBEdit typically resolves the symptoms until the next occurrence.

Since then, I've not heard anything further about the issue.



[ Reply to This | # ]
Fix a BBEdit slow-down when editing multiple files
Authored by: Zee on Sep 06, '05 11:01:39AM

I believe the problem can be initiated by launching a Java application. BBEdit works fine, launch a Java app and then BBedit scrolls painfully slow - no matter how many documents are open. I also reported this to BareBones and receive the same response. Quitting and relaunching BBEdit will "fix" the problem until it happens again. I believe it is a font issue - if memory serves - when this occurs pop into terminal and type top -u and you will see a font-related process chugging away.



[ Reply to This | # ]
Fix a BBEdit slow-down when editing multiple files
Authored by: Zee on Sep 06, '05 11:06:21AM

I believe the problem can be initiated by launching a Java application. BBEdit works fine, launch a Java app and then BBedit scrolls painfully slow - no matter how many documents are open. I also reported this to BareBones and receive the same response. Quitting and relaunching BBEdit will "fix" the problem until it happens again. I believe it is a font issue - if memory serves - when this occurs pop into terminal and type top -u and you will see a font-related process chugging away.



[ Reply to This | # ]
Fix a BBEdit slow-down when editing multiple files
Authored by: randallsquared on Sep 05, '05 12:58:23PM

This also affects TextWrangler, FYI.

Unfortunately, TW doesn't seem to have a "open all the files I had open before on startup" option, so closing and restarting it is really painful. I often have a dozen or more files open at a time.

However, it turns out that Smultron has all the features I really need that TW had, and some extras besides, so I just switched to it.



[ Reply to This | # ]
Fix a BBEdit slow-down when editing multiple files
Authored by: pwoolsey on Sep 06, '05 01:27:23PM
I see part of my post to the BBEdit-Talk list has already made it here :-) but since that contained a bit more info which might also be useful, here's the whole thing.
There is a text drawing bug related to font caching in Mac OS X 10.4.x which can produce these symptoms (slow typing and redraw) in BBEdit and other apps. We have reported this problem to Apple and they are aware of it.

We have not yet been able to determine specifically what triggers this bug, so unfortunately I don't have any prescriptive advice at the moment. Sometimes, quitting and relaunching the affected app(s) will correct the problem, but sometimes you'll need to restart.

You can check whether this is the problem you're seeing by using the Activity Monitor to sample the affected app(s) and/or by just looking for excessive activity by the "ATSServer" process. If you are not sure, please send a note to support@barebones.com with a sample so we can take a look.
As previous posters have indicated, running Java apps does frequently seem to trigger this problem, but that's definitely not the only cause.

Regards,
Patrick

[ Reply to This | # ]
Unhinting my hint
Authored by: cfoster on Sep 07, '05 12:10:04AM

Hi all,

Well, it's certainly looking like this has absolutely nothing to do with clearing out the undo history.

I really did have BBEdit speed up after I did that but, not knowing what caused it, I never reproduced the bug/fix before I posted the hint. (Perhaps these are at two different bugs with two different fixes?)

Launching a Java application while BBEdit is open certainly seems to be a good way to cause a slow-down in BBEdit, but clearing the undo history after I've done this does not speed anything up.

So, sorry about that, folks; this one may be a bad hint.
-Colin.



[ Reply to This | # ]