[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] feature/byte-switch c4316a2: ; bytecomp.el (byte-compi
From: |
Stefan Monnier |
Subject: |
Re: [Emacs-diffs] feature/byte-switch c4316a2: ; bytecomp.el (byte-compile-cond-jump-table): Add TODO note |
Date: |
Mon, 06 Feb 2017 12:40:05 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
>>> But rather than a :linear-search keyword to make-hash-table, can't we
>>> just test the value of `count` and use a linear search if it's small?
> Nitpick: actually, it should be based on the hash-table's *size* rather
> than its *count*.
For me, the place where small hash tables showed up is in cl-generic,
where many of them have just a single entry.
For byte-switch, optimizing the single-entry case is not important (you
wouldn't want to use byte-switch for it), tho.
Stefan