[Top][All Lists]

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

Re: [PATCH v4] Bound index checks in cl-seq functions

From: Clément Pit-Claudel
Subject: Re: [PATCH v4] Bound index checks in cl-seq functions
Date: Mon, 6 Feb 2017 02:15:20 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0

On 2017-02-06 02:00, Tino Calancha wrote:
> Clément Pit-Claudel <address@hidden> writes:
>> On 2017-02-05 02:11, Tino Calancha wrote:
>>> II) `cl--check-bound-indices' returns on success the sequence[s]
>>>     length[s], so that callers don't need to recompute them.
>> This sounds like a good idea, performance wise.  But maybe it would be
>> even better to disable these checks when (cl-declaim (optimize (safety
>> 0))) is set?
> Yes, that sounds right.
> The new patch disables those checks in that case (safety = 0).
> I got ~0.92 s without checks and ~ 1.10 with checks
> when i ran the following toy:

Great, thanks! :)

reply via email to

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