Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Switching to Fastify #2931

Answered by jsjoeio
NightScript370 asked this question in Ideas
Discussion options

Currently, code-server uses Express.JS, which is quite slow and bloated. This is bad because users on lower-end WiFi would have to load code-server really slowly. For example, I am stuck to using a mobile hotspot in school, due to the school WiFi using a whitelist system

Fastify is much quicker than Express by a large amount and the benchmark shows it: https://www.fastify.io/benchmarks/

I was wondering if anyone was interested in switching, or if I would be wasting my time if I were to make a Pull Request attempting this myself.

You must be logged in to vote

This is the first time I've heard of Fastify but it looks promising. And better performance would be nice.

@code-asher would love to get your thoughts on this?

Replies: 1 comment 3 replies

Comment options

This is the first time I've heard of Fastify but it looks promising. And better performance would be nice.

@code-asher would love to get your thoughts on this?

You must be logged in to vote
3 replies
Comment options

Sounds interesting, but requests/sec is most likely/almost definitely not the speedbump they're hitting - they mentioned low-end WiFi/mobile hotspots, which indicates that there's more of a bandwidth/latency issue.

I don't think it would help out in a meaningful enough way in that scenario, or for our usecase in general - code-server is a mostly single-user application so reqs/second isn't something we need to optimize for, imo.

Comment options

Upgrading to a newer JS framework would'nt be tiresome? @jsjoeio
I know frameworks can be nice, but adapting them is difficult. See, Angular for example, it grew like fire and now, nobody touches it.

Comment options

Yeah, agreed. I think @oxy made solid points. Probably wouldn't make sense for us to change.

Answer selected by jsjoeio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

AltStyle によって変換されたページ (->オリジナル) /