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

#1801 Refactor standalone struct service. Get rid of unnecessary Indigo-worker creation. #1803

Merged
merged 5 commits into from
Nov 8, 2022

Conversation

Nitvex
Copy link
Collaborator

@Nitvex Nitvex commented Oct 31, 2022

No description provided.

@Nitvex Nitvex force-pushed the #1801-worker-speed-up branch from b3a4c86 to 03925b2 Compare October 31, 2022 13:15
const message: OutputMessage<string> = e.data
if (message.type !== undefined) {
const event = messageTypeToEventMapping[message.type]
console.log(`emitted event ${event}`)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you remove console.log pls?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Okay, I thought that was intentional.

@@ -460,7 +490,10 @@ class IndigoService implements StructService {
data: commandData
}

worker.postMessage(inputMessage)
this.EE.removeListener('calculateCip', action)
Copy link
Collaborator

Choose a reason for hiding this comment

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

What do you think about replacing string literal with enum
for example :

 this.EE.removeListener(ListenerType.CalculateCip, action)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good proposal :) Will do

@evgeniiFrolov1 evgeniiFrolov1 changed the title #1801 worker speed up #1801 Refactor standalone struct service. Get rid of unnecessary Indigo-worker creation. Nov 8, 2022
@evgeniiFrolov1 evgeniiFrolov1 merged commit 0adac45 into master Nov 8, 2022
@evgeniiFrolov1 evgeniiFrolov1 deleted the #1801-worker-speed-up branch November 8, 2022 13:51
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