mirror of https://github.com/sveltejs/svelte
Closes #18601 The client runes `rest_props` path already uses `Set` + `.has()` for O(1) exclude lookups. Three sibling paths still used arrays + `.includes()`, giving O(|props| × |exclude|) per operation: - Server `rest_props` (SSR) - `exclude_from_object` (rest destructuring, shared) - `legacy_rest_props` (Svelte 4 compat $$restProps proxy) This converts all three to accept `Set<string>` and updates the compiler to emit `new Set([...])` instead of plain arrays, aligning all paths with the existing client runes behavior. Tested: snapshot, compiler, runtime-runes, runtime-legacy, signals, ssr, lint — all pass. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>pull/18732/head
parent
fdb3aa8ba8
commit
8f2a539721
Loading…
Reference in new issue