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

Optimize liveTraces() on JS #3724

Merged

Conversation

armanbilge
Copy link
Member

This was a silly one: we already have a queue of fibers, so it's unnecessary to add/remove them from a separate fiber bag for monitoring. We can just directly iterate over the queue.

durban
durban previously approved these changes Jul 1, 2023
"iterate over contents in foreach" in {
forAll { (stuff: List[Option[Int]]) =>
val queue = new JSArrayQueue[Int]
val shadow = new Queue[Int]
Copy link
Contributor

Choose a reason for hiding this comment

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

It's good to see I'm not the only one who tends to call these things "shadows" :-) (Although I don't remember where I've got the idea from.)

}
}

true must beTrue
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't this the same as ok?

Copy link
Member Author

Choose a reason for hiding this comment

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

oh lol good call

Suggested change
true must beTrue
ok

@armanbilge armanbilge merged commit 91c696c into typelevel:series/3.5.x Jul 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants