meio icon indicating copy to clipboard operation
meio copied to clipboard

Upstream eio changes

Open TheLortex opened this issue 1 year ago • 3 comments

There are many changes in eio:

  • support runtime events
  • provide separate names, logs and automatic locations
  • tracing of cancellation contexts and fiber movement

Ideally, we have to keep in mind that the runtime events interface that meio understands could be useful for other async libraries. So one way ahead is to extract a set of runtime event types that both eio and other libraries can use to provide their events.

TheLortex avatar Apr 19 '23 16:04 TheLortex

One hard thing is automatic caller location. This is currently a hack in my fork of eio.

TheLortex avatar Apr 19 '23 16:04 TheLortex

We could probably do with some benchmark information (at some point) to understand the impact of running the tracing calls in an intense Eio program too?

patricoferris avatar Apr 27 '23 10:04 patricoferris

Because it's using get_callstack it definitely has some runtime overhead. We could also have a global switch for that. Ideally if the compiler generates the location info at the call site then there's less runtime overhead.

TheLortex avatar May 17 '23 08:05 TheLortex