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

Package updates & TS startup time optimizations #898

Merged
merged 7 commits into from
Jul 5, 2021

Conversation

LachlanStuart
Copy link
Contributor

I found updating ts-node and ts-node-dev gives a nice performance boost to graphql's startup:

  • time yarn start: 23.54s -> 10.15s
  • time yarn run dev: 20.68s -> 10.42s
  • time yarn run test: 24.63s -> 20.11s

(Averaged over 3 runs, with a line of code added to server.js to make it quit after everything finished starting, so that the timings were consistent)

I tried updating ts-jest and jest, but there is currently a significant performance regression, so I skipped this.

Hoping the same could happen for webapp, I also updated vue-cli, webpack, babel, etc. but the compilation time didn't really change. I kept the changes anyway, as updates are good.

Lastly, I optimized the CI a bit - skipping type checking on the gen-binding and gen-sql-schema commands, and allowing CircleCI to cache the node_modules directories. Together these save ~1 minute in the generate-graphql-schema step.

Copy link
Contributor

@lmacielvieira lmacielvieira left a comment

Choose a reason for hiding this comment

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

Nice optimization :)

# Conflicts:
#	metaspace/graphql/package.json
@LachlanStuart LachlanStuart merged commit d2ed9b0 into master Jul 5, 2021
@LachlanStuart LachlanStuart deleted the feat/update-ts-node branch July 5, 2021 11:25
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