Skip to content

Make --workers=1 single-threaded#680

Merged
lydell merged 1 commit into
masterfrom
single-threaded
Jul 21, 2026
Merged

Make --workers=1 single-threaded#680
lydell merged 1 commit into
masterfrom
single-threaded

Conversation

@lydell

@lydell lydell commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

This is slightly faster, and being able to run everything in the same process makes debugging easier.

View the diff without whitespace changes since a lot of code became indented.

Comment thread lib/Generate.js
Comment on lines +75 to +76
// Simply remove the first occurrence of `console.warn`. This leaves the message string in parentheses behind, but that’s fine.
.replace('console.warn', '')

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This replaces the previous approach of re-assigning console.warn. This is simpler, and avoids messing with the global console.warn in the main thread.

@lydell
lydell force-pushed the single-threaded branch from c53b029 to fddf900 Compare July 21, 2026 19:00
having a port with the same name, which is a compile error.
-}
port elmTestPort__send : String -> Cmd msg
port elmTestPort__send : Decode.Value -> Cmd msg

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

We now turn this into a JSON string in JS instead – and not at all in single-threaded mode.

@lydell lydell mentioned this pull request Jul 21, 2026
@lydell
lydell merged commit e2df4dc into master Jul 21, 2026
21 of 25 checks passed
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.

1 participant