facebookarchive/prepack

Use a much smaller upper limit for the size of the values domain of a binary operation

Open

#1,000 opened on Sep 26, 2017

View on GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (520 forks)batch import
abstractenhancementhelp wanted

Repository metrics

Stars
 (14,268 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

The maximum number of values that will be tracked in the ValuesDomain as the result of a binary operation or logical operation is currently 10 000. This is unlikely to be helpful. Add some instrumentation to get hold of the actual distribution of the sizes of value domains, given some relevant benchmarks, and then limit the size of the domain to the 99 percentile.

Contributor guide