• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: very sluggish editing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: very sluggish editing


  • Subject: Re: very sluggish editing
  • From: Brent Gulanowski <email@hidden>
  • Date: Sun, 6 Jun 2004 12:59:18 -0400

On Jun 6, 2004, at 11:52 AM, Izidor Jerebic wrote:

> On 6 Jun 2004, at 14:40, Brent Gulanowski wrote:
>
>>
>> On Jun 6, 2004, at 6:22 AM, Izidor Jerebic wrote:
>>
>>> On 4 Jun 2004, at 00:50, Florent Pillet wrote:
>>>
>>>> XCode tends to be very sluggish when the same file is open for
>>>> editing in several windows (ie a debug window and an editor
>>>> window). I noticed this here on a dual 1Ghz G4 with 1.5Gb of RAM
>>>> (so I guess swap is not the issue ;-) )
>>>
>>> Just closing the Debug window is not enough. You need to change the
>>> file within Debug window to some other file. This is really
>>> bothersome.
>>
>> I just wanted to let the list know that I have never seen this
>> problem, and I regularly have the debugger window in use. I think
>> there is a missing variable involved. (G4-dual867, 1.25GB).
>
> Hm, you have not seen what?
>
> 1) A slowdown when editing the same file in two windows?
> 2) A slowdown when the file in editor is also the file displayed in
> Debug window and it is visible?
> 3) A slowdown when Debug window is closed?

I haven't seen any slowdowns at all. Maybe I haven't had any large
files open recently ...

Anyway, when Debug window is closed it's not released or anything, it's
just hidden, and the files in it aren't closed I figure.

>
> If I edit a file (~2000 lines) in an editor window and have it shown
> in any other editor window or as current file in Debug window (even
> closed Debug window), I notice significant slowdown. Not such that I
> could not type, just very annoying. I'm on Cube 450, by the way (yes,
> it's kinda slow, but I like this cute quiet Mac)...

Well I tried opening the Mac OS X Quake project which has a few big
files around 2000 lines, just to test, but the only delays I got were
when code sense was kicking in. (And the delay while the spell checker
looked up "codesense" when I mistyped it was similar.) Specifically, I
opened common.c in the embedded editor and then a bunch of other stuff,
then I opened the debug window and common.c was there immediately. I
mucked around in both windows and didn't get any abnormal delays.

>
> I was pointing to the problem that even as Debug window is closed,
> updates are processed in its text view. That slows down the xCode. And
> since the Debug window is closed, you do not know why this is
> happening! If you close the Debug window, you should not experience
> any delay due to processing within Debug window! It's closed!
>
> if you have two processors, this could be the answer to your different
> experience - try it with two editors and Debug window (open and
> closed), then.

OK I tried the embedded, the debug and a third dedicated window. I can
see a delay now -- if I try to type and delete a single character
repeatedly the editor cannot keep up. It accepts additions quickly but
the deletions are slow. But if someone with a 1.25 or 1.25dual is
seeing slowdowns with two editors, there are other factors. Maybe disk
speed?

I also don't have problems with XCode running out of memory. But even
with five or six projects open I doubt I'm pushing it like people on
teams would. (XCode is using around 500MB including VSIZE + ~110MB
shared).

Examining with Sample during some hyper-monkey-typing ("asdf-<delete>
;ljj;<delete>asdfjk id () adsflj" etc.) shows a lot of notifications
being posted and NSArray -makeObjectsPerformSelector:withObject: coming
up a lot, which makes sense.

I might point out that my System (thus including vm) and Applications
are on a dedicated drive while all of my files (including source code
and projects) are on a separate data drive. Both have >20% free space,
have recently been optimized, and are on separate busses, too. Although
I don't see why this would hit disk but I don't know how to test for
that.

Cheers,


--
Brent Gulanowski email@hidden

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: very sluggish editing (From: Aurélien Hugelé <email@hidden>)
 >Re: very sluggish editing (From: Florent Pillet <email@hidden>)
 >Re: very sluggish editing (From: Izidor Jerebic <email@hidden>)
 >Re: very sluggish editing (From: Brent Gulanowski <email@hidden>)
 >Re: very sluggish editing (From: Izidor Jerebic <email@hidden>)

  • Prev by Date: Re: Drawing a view and its subviews to an NSImage
  • Next by Date: Copying, hash, and isEqual:
  • Previous by thread: Re: very sluggish editing
  • Next by thread: Debugging under 10.2
  • Index(es):
    • Date
    • Thread