From: LiuSeen <91084928+liuseen-l@users.noreply.github.com> Date: Mon, 8 Jan 2024 06:19:07 +0000 (+0800) Subject: chore(comments): dep changed from set to map (#10019) [ci skip] X-Git-Tag: v3.4.6~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96fffe6ec30ce5830a7fb4e3c99c3ef44be86652;p=thirdparty%2Fvuejs%2Fcore.git chore(comments): dep changed from set to map (#10019) [ci skip] --- diff --git a/packages/reactivity/src/reactiveEffect.ts b/packages/reactivity/src/reactiveEffect.ts index 09985e1eac..6bf0e75115 100644 --- a/packages/reactivity/src/reactiveEffect.ts +++ b/packages/reactivity/src/reactiveEffect.ts @@ -13,7 +13,7 @@ import { // The main WeakMap that stores {target -> key -> dep} connections. // Conceptually, it's easier to think of a dependency as a Dep class // which maintains a Set of subscribers, but we simply store them as -// raw Sets to reduce memory overhead. +// raw Maps to reduce memory overhead. type KeyToDepMap = Map const targetMap = new WeakMap()