ivoanjo / gvl-tracing

Get a timeline view of Global VM Lock usage in your Ruby app
MIT License
114 stars 7 forks source link

Examples with IO #5

Open casperisfine opened 2 years ago

casperisfine commented 2 years ago

It would be nice if not all examples were very CPU heavy.

One thing that is often hard to teach about the GVL is when things can actually happen in parallel or not, as such it would be nice to have some examples that do some IOs to show how it release the GVL for other threads.

It would also make for good screenshot in the README so that people don't start to think threads are entirely worthless.

ivoanjo commented 2 years ago

Yeap, fully agreed. I initially intended to include it in the blog post, but ended up "scaling back" the number of examples to hit the first release ;)

benoittgt commented 1 year ago

@ivoanjo Do we still need something one this? I am interested to work on it.

ivoanjo commented 1 year ago

Yeap -- having more examples in the README would definitely be welcome