|
From: | Stefan Monnier |
Subject: | Re: [PATCH]: Add new bytecode op `switch' for implementing branch tables. |
Date: | Fri, 10 Feb 2017 15:58:47 -0500 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
> /* Hash tables for switch are declared with :size set to > the > exact number of cases, thus > HASH_TABLE_SIZE (h) == h->count. */ > is something that could be checked, no? The code doesn't need this property. All it assumes is that h->count is not ridiculously larger than HASH_TABLE_SIZE(h), or that in case it is, the user doesn't care about utmost performance. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |