From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: Pushing the `gnus-range-*' functions down into the C layer Date: Fri, 10 Sep 2010 09:01:55 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87eid14rzg.fsf@lifelogs.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1284127341 17327 80.91.229.12 (10 Sep 2010 14:02:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Sep 2010 14:02:21 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 10 16:02:20 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ou4BH-0005FZ-Sk for ged-emacs-devel@m.gmane.org; Fri, 10 Sep 2010 16:02:20 +0200 Original-Received: from localhost ([127.0.0.1]:38833 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ou4BH-00089b-Fu for ged-emacs-devel@m.gmane.org; Fri, 10 Sep 2010 10:02:19 -0400 Original-Received: from [140.186.70.92] (port=52371 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ou4B8-00087G-ST for emacs-devel@gnu.org; Fri, 10 Sep 2010 10:02:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ou4B5-0001Es-F8 for emacs-devel@gnu.org; Fri, 10 Sep 2010 10:02:10 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:48220) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ou4B5-0001Eg-9i for emacs-devel@gnu.org; Fri, 10 Sep 2010 10:02:07 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ou4B4-00059B-LJ for emacs-devel@gnu.org; Fri, 10 Sep 2010 16:02:06 +0200 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Sep 2010 16:02:06 +0200 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Sep 2010 16:02:06 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 21 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:3BJaFDZPRnV9Tw5Z+gKEvfC7Zgw= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:129899 Archived-At: On Fri, 10 Sep 2010 15:45:23 +0200 Stefan Monnier wrote: SM> Hmm... so how 'bout installing a C version of range-memq and keep SM> everything else in Elisp? Would that be good enough as a "quick SM> fix"? Lars, how about the performance of the set operations (difference, union, subset/superset, intersection)? Were you planning to do those in C as well? They'll benefit from a fast range-memq but they would still do a lot of ELisp work. Can ranges be an opaque type (with rangep, make-range, etc.) so the implementation is irrelevant to the user? That seems the best compromise between performance and maintainability. As long as you can read and print ranges in a consistent format, that is. Depending on the expected size and performance, the internals can convert between bool-vectors, binary trees, inversion lists, plain lists, whatever. Ted