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

Improve Development Server #675

Merged
merged 3 commits into from
Sep 24, 2023
Merged

Improve Development Server #675

merged 3 commits into from
Sep 24, 2023

Conversation

gdotdesign
Copy link
Member

This PR improves the development server (mint start) in two ways:

  1. Previously, it type-checked the whole application twice on every change 😰

    Now it just uses the Workspace for the type-checking like everything else.

  2. It just type-checks the hot path, not all entities. This speeds up type checking in cases like icons (https://github.com/mint-lang/mint-tabler-icons/blob/master/source/Icons.mint ~60K LOC) where only the icons which are used are type-checked.

After merging this, the roundtrip on every change should be twice as fast as before 🎉

- Don't type check twice
- Only check the hot path not everything
@gdotdesign gdotdesign added bug Something isn't working enhancement New feature or request tooling Tooling related feature (formatter, documentation, production builder) labels Sep 24, 2023
@gdotdesign gdotdesign added this to the 0.20.0 milestone Sep 24, 2023
@gdotdesign gdotdesign self-assigned this Sep 24, 2023
src/workspace.cr Outdated Show resolved Hide resolved
Co-authored-by: Sijawusz Pur Rahnama <[email protected]>
@gdotdesign gdotdesign merged commit 2ae428c into master Sep 24, 2023
3 checks passed
@gdotdesign gdotdesign deleted the reactor-improvements branch September 24, 2023 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request tooling Tooling related feature (formatter, documentation, production builder)
Development

Successfully merging this pull request may close these issues.

2 participants