From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Antipov Newsgroups: gmane.emacs.devel Subject: Re: 'struct window' cleanup #2 Date: Mon, 25 Jun 2012 20:30:16 +0400 Message-ID: <4FE89218.6050902@yandex.ru> References: <4FE827B6.6020306@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1340641689 3746 80.91.229.3 (25 Jun 2012 16:28:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 25 Jun 2012 16:28:09 +0000 (UTC) Cc: Emacs development discussions To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 25 18:28:08 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 1SjC91-0003Gl-B2 for ged-emacs-devel@m.gmane.org; Mon, 25 Jun 2012 18:28:07 +0200 Original-Received: from localhost ([::1]:58397 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjC91-0000RQ-8Q for ged-emacs-devel@m.gmane.org; Mon, 25 Jun 2012 12:28:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55057) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjC8t-0000RA-Uy for emacs-devel@gnu.org; Mon, 25 Jun 2012 12:28:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SjC8p-0003CH-6h for emacs-devel@gnu.org; Mon, 25 Jun 2012 12:27:59 -0400 Original-Received: from forward9.mail.yandex.net ([77.88.61.48]:34605) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjC8o-0003By-OD for emacs-devel@gnu.org; Mon, 25 Jun 2012 12:27:55 -0400 Original-Received: from smtp9.mail.yandex.net (smtp9.mail.yandex.net [77.88.61.35]) by forward9.mail.yandex.net (Yandex) with ESMTP id 367EECE2F7A; Mon, 25 Jun 2012 20:27:52 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1340641672; bh=SeZ2ByErcatxChClW6rPljPYgWhtvYRdwVPxRSejCwg=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=BpM3YPyJVaVwy4biuK9L7pUHchSkGYIF0qz9xX74QBeC6MviLpxWLQwKQrE8i8e+W Q1IiuNotrSGVzLJozPSkkpxoYtcDt3fHp0ATAq6H5cn9yYuCfURfB1BzeDUu1X1iuG hvuzcd7D82G4fhbyCLXHePNN3gfcip1hqfmzWtW0= Original-Received: from smtp9.mail.yandex.net (localhost [127.0.0.1]) by smtp9.mail.yandex.net (Yandex) with ESMTP id 09EDB1520648; Mon, 25 Jun 2012 20:27:51 +0400 (MSK) Original-Received: from 213-148-21-55.gelicon.ru (213-148-21-55.gelicon.ru [213.148.21.55]) by smtp9.mail.yandex.net (nwsmtp/Yandex) with ESMTP id Rp60Lgvw-Rp648uoo; Mon, 25 Jun 2012 20:27:51 +0400 X-Yandex-Rcpt-Suid: monnier@iro.umontreal.ca X-Yandex-Rcpt-Suid: emacs-devel@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1340641671; bh=SeZ2ByErcatxChClW6rPljPYgWhtvYRdwVPxRSejCwg=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=lq+oRYq9p1Z118CisSKJXebyFrcQjsDNmWaaGoec/1ddfQI3ZNE8lcrgmC+Uudnze wP61QbHsLExIQW3Tsny4623ZVE+YIR2LTe5MrPTeBYtZceBQPMIDKcJWWXpt8UEG7J Gzf4LeashlG1j9/U85xagsTYTFy/+dbTeqf0J2XI= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 77.88.61.48 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:151157 Archived-At: On 06/25/2012 06:53 PM, Stefan Monnier wrote: >> For a `struct window', changing the type of `last_point', `last_modified' >> and `last_overlay_modified' from Lisp_Object to appropriate integral >> value eliminates a lot of useless Lisp_Object <-> {EMACS_INT, ptrdiff_t} >> conversions in a window and redisplay code; and, of course, lesser Lisp_Objects >> means a bit faster GC. OK to install? > > hscroll and min_hscroll are good candidates as well. IIUC, doing this means that we can't treat saved_window as Lisp_Vector anymore - it should be one more pseudo-vector type like save_window_data instead. Is it worth doing? Dmitry