Re: NSTextView/text system slowdown on Leopard
Re: NSTextView/text system slowdown on Leopard
- Subject: Re: NSTextView/text system slowdown on Leopard
- From: Keith Blount <email@hidden>
- Date: Mon, 4 Feb 2008 15:28:26 -0800 (PST)
Many thanks for your replies.
Apologies if my post was a bit vaguer than it should have been. I should have clarified that I tested this on numerous apps that use the text system - Bean, WriteRoom, iText Express and others, along with my own - and that they all showed the same symptoms to varying degrees. I also spent a lot of time isolating sections of my own code that would add processing time to typing, but no individual section of code had a big impact. It seems to be cumulative. Also, I gave a test app isolating the text system part of my app (a heavily subclassed NSTextView, layout manager and text storage) to a couple of users running G4s of different specs to see if it was that causing slowdown or other parts of my larger app. But I got conflicting reports - some said that didn't lag as much as when with the rest of the app, some said not at all, others said as much. Likewise, others report varying results from other Cocoa NSTextView apps - some have big lags in those, others
not so much. Hence I wondered if this was something known and whether I had missed something in the release notes about new optimisation techniques/necessities.
Anyway, I have filed a bug as suggested explaining how to reproduce this in TextEdit.
Thanks again and all the best,
Keith
----- Original Message ----
From: I. Savant <email@hidden>
To: Keith Blount <email@hidden>
Cc: email@hidden
Sent: Monday, February 4, 2008 8:47:16 PM
Subject: Re: NSTextView/text system slowdown on Leopard
>
Is
there
anything
I
can
do
about
this?
I
can
reproduce
the
slowdown
in
almost
any
app
that
uses
an
NSTextSystem.
If
I
unplug
my
iBook
to
use
less
processing
power,
then
paste
a
couple
of
thousand
words
into
TextEdit
and
start
typing
somewhere
inside
the
text
(works
fine
at
the
bottom),
typing
is
a
slow
trudge,
with
drawing
struggling
to
keep
up
with
my
key
strokes.
There
was
no
such
problem
on
Tiger.
My
apologies
-
I
didn't
address
this
part.
On
its
surface,
it
appears
the
problem
is
not
specific
to
your
app,
but
rather
could
be
the
way
you're
using
it.
Profiling
would
give
you
a
much
better
idea
of
where
the
problem
actually
is.
--
I.S.
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden