emacs-devel
[Top][All Lists]
Advanced

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

Re: Pushing the `gnus-range-*' functions down into the C layer


From: Lars Magne Ingebrigtsen
Subject: Re: Pushing the `gnus-range-*' functions down into the C layer
Date: Fri, 10 Sep 2010 16:06:34 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

> I wouldn't dream of arguing that intervals are not generally useful.
> Hell, we use them for text-properties.  But I think that if we want to
> provide something like that from C, we should try and make them better
> than just "sorted lists of cons cells".  If the code can be shared with
> the one for text-properties (which uses a balanced binary tree), that's
> even better.

Yeah, that would really be nice.  A `range-memq' on a balanced binary
tree would be really fast.  Hm...  perhaps I should have a peek at the
text property code?

> Hmm... so how 'bout installing a C version of range-memq and keep
> everything else in Elisp?  Would that be good enough as a "quick fix"?

It would do away with the compressing/decompressing needs that Gnus has,
and it might be enough, but I'd have to do some more benchmarking
first, I think.

-- 
(domestic pets only, the antidote for overdose, milk.)
  address@hidden * Lars Magne Ingebrigtsen




reply via email to

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