emacs-devel
[Top][All Lists]
Advanced

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

Re: Internationalize Emacs's messages (swahili)


From: Lars Ingebrigtsen
Subject: Re: Internationalize Emacs's messages (swahili)
Date: Sat, 26 Dec 2020 23:10:39 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> Actually, AFAICT this all started from:
>
>     (not (null (cdr deleted))) would avoid traversing the entire list,
>     but it wouldn't be easier to read.
>
> which doesn't actually demonstrate a need for "speed optimisation", but
> rather a need to avoid extra work (which could lead to real performance
> problems when the list is long), so the ELisp implementation seems to
> fit the bill ("avoid traversing the entire list" while being "easier to
> read").

Well, it started from (< (length list) ...), and the not-null-cdr was
mooted as a faster, but less readable solution.

A Lisp function would be slower (in many cases), but more readable.

I'm proposing a solution that's faster, and more readable.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

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