-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doc: "keep_infinity" is redundant on modern Chrome #2743
base: master
Are you sure you want to change the base?
Conversation
Clarify that "keep_infinity" compress option is only useful for older versions of Chrome. The initial performance assessment that concluded `Infinity` was faster than `1/0` was based on Chrome 57. mishoo#1723 (comment) Chrome 63 suffers no such degradation. https://jsperf.com/infinity-vs-1-0-v2-0
/cc @kzc |
Chrome no longer penalizes The default is:
No harm keeping the option. |
@@ -658,7 +658,7 @@ If you're using the `X-SourceMap` header instead, you can just omit `sourceMap.u | |||
`Function.prototype.name`. See also: the `keep_fnames` [mangle option](#mangle). | |||
|
|||
- `keep_infinity` (default: `false`) -- Pass `true` to prevent `Infinity` from | |||
being compressed into `1/0`, which may cause performance issues on Chrome. | |||
being compressed into `1/0`, which may cause performance issues on old versions of Chrome. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be better to state when Chrome reached performance parity for 1/0
and Infinity
. If not the specific version, at least the year.
Not that having more options is bad, but does anyone out there actually switches this on? |
I noticed @std/esm was using keep_infinity which initially sparked my
curiosity.
https://github.com/standard-things/esm/blob/master/.uglifyrc
…On 7 Jan 2018 5:38 pm, "João Dias" ***@***.***> wrote:
Not that having more options is bad, but does anyone out there actually
switches this on?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2743 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGni9bTKzmbyIaZVbjoKAeSWBN3IRWHnks5tIQEJgaJpZM4RVqhb>
.
|
They don't even use |
Maintainer of |
7d1c0a7
to
b468103
Compare
Clarify that "keep_infinity" compress option is only useful for older versions of Chrome.
The initial performance assessment that concluded
Infinity
was faster than1/0
was based on Chrome 57.#1723 (comment)
Chrome 63 suffers no such degradation.
https://jsperf.com/infinity-vs-1-0-v2-0