<irc_user>
Hi, crystal seems pretty awesome. I'm looking to make a TUI text editor that's as snappy/responsive as possible, and I notice on these benchmarks: https://programming-language-benchmarks.vercel.app/problem/helloworld that crystal is at 4ms, while go is at 1ms. I guess this question isn't necessarily super crystal-specific, but I'm wondering why one lang would have faster IO than another?
<FromGitter>
<Blacksmoke16> prob depends on how they implement the IO interaction. i.e. crystal has evented IO, so i imagine that adds some overhead on trivial examples like this
<FromGitter>
<Blacksmoke16> e.g. say you wanted to write data to some IO and it was busy and couldnt accept it, Crystal would be able to execute other fibers while waiting for that
<irc_user>
Blacksmoke16: Thanks for taking a look! In the case of a TUI, then, would there be a way to make keypresses show up on the screen as instantaneously as possible? I know 4ms is already really low, but I'm still interested in learning more about optimizing this sort of thing.
<FromGitter>
<Blacksmoke16> not sure, you'd have to play around with it to see if its fast enough for you already. otherwise then can dive into seeing if it can be improved in same way or another
<irc_user>
Okay, thank you :)
_ht has joined #crystal-lang
jmdaemon has joined #crystal-lang
_ht has quit [Remote host closed the connection]
sagax has quit [Remote host closed the connection]