GeertJohan / gomatrix

Displays "The Matrix" in a terminal
BSD 2-Clause "Simplified" License
291 stars 67 forks source link

Love it, But Sloooow #11

Closed rwxrob closed 6 years ago

rwxrob commented 7 years ago

Compared to cmatrix, which we have on the system for our students afraid it is too slow to install. I'm guess the algorithm is substantially different. Really too bad because I was going to use it as a replacement for cmatrix to show off Go's capabilities to students. Might be the underlying termbox that is the bottleneck.

GeertJohan commented 6 years ago

I wrote this program to play with channels and goroutines. So each falling raindrop/stream is actually a goroutine. So it's not very efficient as it wasn't created with that in mind. There are probably a couple of things that can be improved now that I have more experience with Go. But it might still be fun to look at the code to figure out how the components interact with each other.