emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH]: Add new bytecode op `switch' for implementing branch tables


From: Eli Zaretskii
Subject: Re: [PATCH]: Add new bytecode op `switch' for implementing branch tables.
Date: Wed, 08 Feb 2017 19:56:11 +0200

> From: Vibhav Pant <address@hidden>
> Date: Wed, 8 Feb 2017 19:08:12 +0530
> Cc: Stefan Monnier <address@hidden>,
>       "address@hidden" <address@hidden>
> 
> The following patch makes hash_lookup use linear search when the number of 
> keys
> in the hash table is <= 5 (chosen arbitrarily). switch bytecode run with this
> patch takes 15.96 seconds to run the benchmark, while the goto-if-nil code 
> takes
> 17.15 seconds.

Thanks.  Please mention in the comments that 5 is arbitrary, and
perhaps some considerations for choosing the value.



reply via email to

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