[Cocoa-sharp] Performance of UI
Edward Carr
ecarr at lightshipinc.com
Fri Mar 7 08:37:12 EST 2008
The performance problem is not a Leopard only issue. We have the same
problem when running under 10.3, 10.4 and 10.5. It's a fundamental issue
with the interop classes. I've replaced just the interop classes with ones
from an initial release when there was stackpadding and voodoo magic going
on; I forget the actual release, but I believe it is the source that was
used to build the cocoa-sharp that is still being released with Mono today.
This original (but messy) code performs much better than the current code.
Edward Carr
-----Original Message-----
From: cocoa-sharp-bounces at lists.ximian.com
[mailto:cocoa-sharp-bounces at lists.ximian.com] On Behalf Of marc hoffman
Sent: Friday, March 07, 2008 5:10 AM
To: David Jehring
Cc: Cocoa-sharp at lists.ximian.com
Subject: Re: [Cocoa-sharp] Performance of UI
David,
i too am seeing this, and it *seems* to be a leopard problem only. i
remember speed being just fine when i first played with Cocoa# on
10.4, last September/October, then when i switched to leopard things
turned bad (i posted at the time). i've seen some improvements in
general UI since 1.2.6 (i think), for example my
MethiodHeaderConverter works fine. but even a simple app using a grid
(such as http://www.remobjects.com?da35 slows to a crawl - and it's
NOT the callbacks to get data or coloring info 0 its just as slow
without).
one major culprit, i think, is the new Toolbar. it might sound silly,
but in my first tests back when i switched to Leopard, i got the
impression that the simple presence of a toolbar changed speed. drop
an textedit - all is fine. drop a toolbar too, and typing got
reaaaallllllyyyyy slloooowwww, and Mono.exe ate a full CPU, according
to "top" while you did.
Yours,
marc hoffman
RemObjects Software
The Infrastructure Company
http://www.remobjects.com
On Mar 7, 2008, at 10:51 AM, David Jehring wrote:
> Thanks Edward, it is reassuring to hear that it is a known issue but
> somewhat disappointing that such a fundamental problem has existed
> for so long with no sign of it being addressed. Following the
> initial deafeningly silent response to my post I have abandoned
> cocoa-sharp and gone back to the somewhat more laborious task of
> porting my clients to pure obj-c. It seems a shame but I cannot risk
> the issue not being resolved and ending up with unusable applications.
>
> David
>
>
> On 06/03/2008 21:31, "Edward Carr" <ecarr at lightshipinc.com> wrote:
>
>> David,
>>
>> I have seen the same issue that you are seeing. We actually use a
>> previous version of Cocoa-sharp, which performs 1000% better. I
>> have raised this issue before in the past, but no one seemed to
>> acknowledge it. With the previous version, we were able to put
>> together a great performing product.
>>
>> Edward Carr
>>
>> From: cocoa-sharp-bounces at lists.ximian.com
[mailto:cocoa-sharp-bounces at lists.ximian.com
>> ] On Behalf Of David Jehring
>> Sent: Saturday, March 01, 2008 4:46 AM
>> To: Cocoa-sharp at lists.ximian.com
>> Subject: [Cocoa-sharp] Performance of UI
>>
>> Having got to grips with writing cocoa sharp applications over the
>> past couple of weeks I am experiencing a significant problem of UI
>> performance, as noted in another posting earlier this week. Even a
>> simple 'Hello world' application shows significant screen lag when
>> resizing and consumes disproportionate CPU time, once you add a
>> couple of views to a window resizing can consume 90% of CPU time.
>> Typing into a text field with an event attached can produce a lag
>> of a second or so between characters. As with all open source
>> software when you find these things there is always a strong
>> possibility that this is to do with local configuration, but in
>> addition to the posting this week I note a thread called
>> 'Performance on Leopard' last year discussing this issue with no
>> conclusion. Are others experiencing this ? If so is there anyone
>> with insight as to what the underlying issue is and what is
>> required to resolve it. I see cocoa sharp as the most sensible way
>> to bring my web service based client applications from Windows to
>> OS X and would be very happy to contribute to the open source
>> effort, however this issue would seem to be a bit of a showstopper.
>>
>> David
>>
>> Dr David Jehring
>>
>>
> _______________________________________________
> Cocoa-sharp mailing list
> Cocoa-sharp at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/cocoa-sharp
_______________________________________________
Cocoa-sharp mailing list
Cocoa-sharp at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/cocoa-sharp
More information about the Cocoa-sharp
mailing list