facebookarchive/prepack

Make maps and sets more usuable

Open

#1,047 创建于 2017年10月4日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)JavaScript (520 fork)batch import
abstractdesign neededdo-not-reapenhancementhelp wantedlevel 4 (hard)priority: lowtest needed

仓库指标

Star
 (14,268 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Map, Set, WeakMap and WeakSet are all implemented by doing linear searches of an array of key values. The key values are compared with a routine that requires concrete values. Comparing abstract values is quite a bit more challenging, since more than one match may be present, each with different conditions. Some of these conditions can be removed by refining the abstract keys with the current paths, but others will have to be dealt with by returning a result which is a conditional abstract value.

贡献者指南