Skip to content
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

Disable compression for development proxy #6699

Merged
merged 3 commits into from
Dec 15, 2022
Merged

Conversation

philippotto
Copy link
Member

@philippotto philippotto commented Dec 15, 2022

I noticed that the vendors and main js file took quite a while to load in the dev setup (TTFB was almost 2 seconds). I traced this down to the compression. Since the source files are quite big (e.g., > 30 MB) due to source maps, the compression penalty is quite high and not worth it the size reduction.

Without the compression the TTFB goes down to ~60ms and the content download time is ~280ms.

  • Ready for review

@philippotto philippotto requested a review from normanrz December 15, 2022 13:01
@philippotto philippotto self-assigned this Dec 15, 2022
@philippotto philippotto enabled auto-merge (squash) December 15, 2022 13:06
@philippotto philippotto merged commit 175a01b into master Dec 15, 2022
@philippotto philippotto deleted the disable-gzip-for-dev branch December 15, 2022 13:24
hotzenklotz added a commit that referenced this pull request Dec 15, 2022
…cing

* 'master' of github.com:scalableminds/webknossos:
  Disable compression for development proxy (#6699)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants