C++ Logo

std-proposals

Advanced search

Re: [std-proposals] A draft for modern switch

From: Zhihao Yuan <zy_at_[hidden]>
Date: Fri, 23 May 2025 21:57:13 +0000
On Friday, May 23rd, 2025 at 2:48 PM, Zhihao Yuan via Std-Proposals <std-proposals_at_[hidden]> wrote:

> [...] Double-array compile-time Trie and compile-
> time string binary search leads to a slightly different
> kind of strategies where each action to emit
> after a search hit is a goto address as opposes to
> a final computed goto,


Errata: DA Trie also needs to use computed goto
(because it is data structure-based). Binary
search can use static goto because the search
branches are unrolled.

--
Zhihao Yuan, ID lichray
The best way to predict the future is to invent it.
_______________________________________________

Received on 2025-05-23 21:57:25