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: Tue, 24 Jul 2012 08:25:41 +0200 Message-ID: <88766C51-C0DC-4307-95A7-A3A9B53B9CAF@swipnet.se> References: <87r4s68rr4.fsf@lifelogs.com> <83A41E83-79C8-4490-966B-CD224041E840@gmail.com> <80ACEDD7-86B4-4E7D-85F2-4308AB34837B@swipnet.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1343111156 22549 80.91.229.3 (24 Jul 2012 06:25:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 Jul 2012 06:25:56 +0000 (UTC) Cc: Paul Michael Reilly , "emacs-devel@gnu.org" , John Wiegley To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 24 08:25:55 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 1StYZ7-0004jf-0L for ged-emacs-devel@m.gmane.org; Tue, 24 Jul 2012 08:25:53 +0200 Original-Received: from localhost ([::1]:37250 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1StYZ6-0000FY-BL for ged-emacs-devel@m.gmane.org; Tue, 24 Jul 2012 02:25:52 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59113) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1StYZ3-0000F5-MM for emacs-devel@gnu.org; Tue, 24 Jul 2012 02:25:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1StYZ2-0005Oh-B0 for emacs-devel@gnu.org; Tue, 24 Jul 2012 02:25:49 -0400 Original-Received: from mailout.melmac.se ([62.20.26.67]:49159) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1StYZ1-0005OR-VE for emacs-devel@gnu.org; Tue, 24 Jul 2012 02:25:48 -0400 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id BDD509885 for ; Tue, 24 Jul 2012 08:25:45 +0200 (CEST) Original-Received: (qmail 17674 invoked by uid 89); 24 Jul 2012 06:25:38 -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; 24 Jul 2012 06:25:38 -0000 Original-Received: from [172.20.199.248] (janiphone [172.20.199.248]) by coolsville.localdomain (Postfix) with ESMTPSA id 2F0A17FA06C; Tue, 24 Jul 2012 08:25:45 +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:151843 Archived-At: Hello. 24 jul 2012 kl. 01:26 skrev Stefan Monnier : >>>> This is a known issue, partly to do with how the event loop is >>>> implemented. A smarter loop doubles the speed, but it is still slower >>>> than say X. >>> Does this issue have a bug number? Any discussions on fixes that are >>> relevant? A simple way to illustrate the problem? >> See 7761. >=20 > This bug number does not seem to discuss much this event-loop problem. > Is there some place where this problem is discussed? It has a way to see the problem. Ian not aware of any event loop discussion,= it is something I saw when investigating that bug.=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. 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 repla= cement 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 basic concept is to have one thread for file descriptors and let the mai= n thread deal with Cocoa events. The code today does something similar, but= it relies on polling each 0.1 second. Jan D.=