facebookarchive/prepack

Make maps and sets more usuable

Open

#1 047 ouverte le 4 oct. 2017

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)JavaScript (520 forks)batch import
abstractdesign neededdo-not-reapenhancementhelp wantedlevel 4 (hard)priority: lowtest needed

Métriques du dépôt

Stars
 (14 268 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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.

Guide contributeur