[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs on OS X development

From: Jan Djärv
Subject: Re: Emacs on OS X development
Date: Wed, 25 Jul 2012 09:27:36 +0200


24 jul 2012 kl. 10:36 skrev YAMAMOTO Mitsuharu <address@hidden>:

>>>>>> On Tue, 24 Jul 2012 08:25:41 +0200, Jan Djärv <address@hidden> said:
>>> I hope someone can try and tackle it, e.g. starting by comparing
>>> the approach used currently in the NS port compared to the X, Gtk,
>>> Windows or Mac ports, so as to devise a plan.
>> I have a plan to do more or less what Gdk does on OSX, use lower
>> level (Core Foundation) API:s. The NS-port has many special things
>> (resizing, redrawing and more) that depends on how things are done
>> now, so it isn't just a replacement of a few functions.
>> I haven't looked at the Mac port, but if it uses CF for the event
>> loop, code may be reused from there.
> The Mac port uses CF for that purpose only on older versions of Mac OS
> X.  For newer versions, it uses Grand Central Dispatch instead:
>  http://lists.gnu.org/archive/html/emacs-devel/2012-01/msg00035.html
> I'm not sure about the recent situation, but I remember neither of
> them was (widely, at least) available on GNUstep.

No, CF is not available on GNUStep. I planned to use a modified version of the 
current loop, that removes the timeout. After some experiments it seems that 
this gives you almost all the performance gains. I'm going to try on a  slower 
machine also.
If it looks good then we might as well skip CF.

There is still the problem why the NS-port does not redraw during resize.

    Jan D.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]