Skip to content

[optimizer] use "unsafe" defaults that have proven to be safe enough#10275

Merged
spalger merged 2 commits intoelastic:masterfrom
spalger:update/optimization-defaults
Feb 15, 2017
Merged

[optimizer] use "unsafe" defaults that have proven to be safe enough#10275
spalger merged 2 commits intoelastic:masterfrom
spalger:update/optimization-defaults

Conversation

@spalger
Copy link
Copy Markdown
Contributor

@spalger spalger commented Feb 9, 2017

When we were integrating webpack into 4.2 we were unsure what the unsafeCache setting would do, but realized it's performance benefits, so we asked developers to opt-in to using it. Since then it has become apparent that, while it does sometimes force you to restart the server in order to clear the cache webpack is so much faster with it enabled that it is worth it.

This change enables it by default in development.

@spalger spalger added Team:Operations Kibana-Operations Team review v6.0.0 labels Feb 9, 2017
@spalger spalger requested review from jbudz and tylersmalley February 9, 2017 20:56
@trevan
Copy link
Copy Markdown
Contributor

trevan commented Feb 9, 2017

What do you mean by "while it does sometimes force you to restart the server in order to clear the cache"? Can you add documentation in the CONTRIBUTING guide on when you might need to restart the server?

@tylersmalley tylersmalley self-assigned this Feb 13, 2017
@spalger spalger force-pushed the update/optimization-defaults branch from aba2391 to 68be975 Compare February 14, 2017 18:44
Copy link
Copy Markdown
Member

@tylersmalley tylersmalley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - shaves about half the time off the optimize process.

@tylersmalley tylersmalley removed their assignment Feb 15, 2017
@spalger spalger added the v5.4.0 label Feb 15, 2017
@spalger spalger merged commit 9b39a19 into elastic:master Feb 15, 2017
elastic-jasper added a commit that referenced this pull request Feb 15, 2017
Backports PR #10275

**Commit 1:**
[optimizer] use "unsafe" defaults that have proven to be safe enough

* Original sha: 045d624
* Authored by spalger <spalger@users.noreply.github.com> on 2017-02-09T20:52:32Z

**Commit 2:**
[docs] add a note to the CONTRIBUTING.md regarding potential pitfalls

* Original sha: 68be975
* Authored by spalger <spalger@users.noreply.github.com> on 2017-02-14T18:43:39Z
spalger pushed a commit that referenced this pull request Feb 16, 2017
…10380)

Backports PR #10275

**Commit 1:**
[optimizer] use "unsafe" defaults that have proven to be safe enough

* Original sha: 045d624
* Authored by spalger <spalger@users.noreply.github.com> on 2017-02-09T20:52:32Z

**Commit 2:**
[docs] add a note to the CONTRIBUTING.md regarding potential pitfalls

* Original sha: 68be975
* Authored by spalger <spalger@users.noreply.github.com> on 2017-02-14T18:43:39Z
@spalger spalger deleted the update/optimization-defaults branch October 18, 2019 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants