Skip to content

proxying via SWA CLI is slow #554

Answered by manekinekko
bzbetty asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @bzbetty so after investigating the issue, I found out about the cause. I'll send a fix that's gonna boost the performance of the local dev experience by ~70%. Thank you again for reporting this performance issue 👍

Vite dev server:

SWA CLI

Here is a graph showing the perf boost.

Please note that given how the SWA CLI local emulator is architecture, it's challenging for us to beat the framework dev server. This is why the numbers of the SWA CLI load time are slightly higher than the framework dev server HTTP server.

FWIW, when configuring the SWA CLI to connect to your dev server, we are basically proxying all requests to that dev server, and this obviously adds some extra time to th…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@bzbetty
Comment options

@bzbetty
Comment options

@manekinekko
Comment options

Comment options

You must be logged in to vote
1 reply
@bzbetty
Comment options

Answer selected by manekinekko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants