emacs-devel
[Top][All Lists]
Advanced

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

Re: [RFC] bytecomp: simple source-level optimization


From: Leo Liu
Subject: Re: [RFC] bytecomp: simple source-level optimization
Date: Mon, 23 Jun 2014 16:29:23 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (CentOS 6.5)

On 2014-06-23 10:43 +0400, Dmitry Antipov wrote:
> Source forms like:
>
> (if (= (point) (point-min)) ...)
>
> or:
>
> (if (eq (point-max) (point)) ...)
>
> are widely used, but compiled as is, which is suboptimal.
> The first one can be optimized to (if (bobp) ...) and the
> second to (if (eobp) ...), respectively.

Optimise for unidiomatic code in non-performace-critical cases? Not sure
;)

Leo




reply via email to

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