emacs-devel
[Top][All Lists]
Advanced

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

Re: remove-duplicates performances


From: Stefan Monnier
Subject: Re: remove-duplicates performances
Date: Fri, 20 May 2011 15:01:07 -0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>> Yes, i understand that, what i mean is you have to write a predicate
>> each time, which could be inconvenient, instead of using :test 'equal.
> With all due respect, you are proposing a hashtable as an alternate
> mechanism.  A hashtable requires a hash function and an equality test.

We do have a built-in hash function that corresponds to the `equal'
equality test, as well as one for the `eq' equality test.

Total ordering predicates consistent with `eq' or `equal' OTOH are not
currently provided, so the use of `sort' requires extra work.


        Stefan



reply via email to

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