From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Jan_Dj=C3=A4rv?= Newsgroups: gmane.emacs.devel Subject: Re: Emacs on OS X development Date: Wed, 25 Jul 2012 09:27:36 +0200 Message-ID: <21AE3708-4FD4-43FF-841B-82A8E7BBB6F8@swipnet.se> References: <87r4s68rr4.fsf@lifelogs.com> <83A41E83-79C8-4490-966B-CD224041E840@gmail.com> <80ACEDD7-86B4-4E7D-85F2-4308AB34837B@swipnet.se> <88766C51-C0DC-4307-95A7-A3A9B53B9CAF@swipnet.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1343201297 18026 80.91.229.3 (25 Jul 2012 07:28:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 25 Jul 2012 07:28:17 +0000 (UTC) Cc: Paul Michael Reilly , "emacs-devel@gnu.org" , Stefan Monnier , John Wiegley To: YAMAMOTO Mitsuharu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 25 09:28:16 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Stw10-0001mD-Th for ged-emacs-devel@m.gmane.org; Wed, 25 Jul 2012 09:28:15 +0200 Original-Received: from localhost ([::1]:39921 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Stw0z-0004c9-TA for ged-emacs-devel@m.gmane.org; Wed, 25 Jul 2012 03:28:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52521) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Stw0w-0004c4-UX for emacs-devel@gnu.org; Wed, 25 Jul 2012 03:28:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Stw0s-0003ov-0p for emacs-devel@gnu.org; Wed, 25 Jul 2012 03:28:10 -0400 Original-Received: from mailout.melmac.se ([62.20.26.67]:39928) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Stw0r-0003ok-PU for emacs-devel@gnu.org; Wed, 25 Jul 2012 03:28:05 -0400 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id 6FC9A9E24 for ; Wed, 25 Jul 2012 09:28:01 +0200 (CEST) Original-Received: (qmail 17041 invoked by uid 89); 25 Jul 2012 07:27:53 -0000 Original-Received: from h-46-59-42-18.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.18) by mail01.melmac.se with ESMTPA; 25 Jul 2012 07:27:53 -0000 Original-Received: from [172.16.2.211] (gw01.ismobile.com [212.73.186.202]) by coolsville.localdomain (Postfix) with ESMTPSA id 871ED7FA06C; Wed, 25 Jul 2012 09:27:59 +0200 (CEST) In-Reply-To: X-Mailer: iPhone Mail (9B206) X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 62.20.26.67 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:151873 Archived-At: Hello.=20 24 jul 2012 kl. 10:36 skrev YAMAMOTO Mitsuharu : >>>>>> On Tue, 24 Jul 2012 08:25:41 +0200, Jan Dj=C3=A4rv said: >=20 >>> 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. >=20 >> 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. >=20 >> I haven't looked at the Mac port, but if it uses CF for the event >> loop, code may be reused from there. >=20 > 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: >=20 > http://lists.gnu.org/archive/html/emacs-devel/2012-01/msg00035.html >=20 > 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 t= he current loop, that removes the timeout. After some experiments it seems t= hat this gives you almost all the performance gains. I'm going to try on a s= lower 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.=