Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

With "matrix" causing bash to consume 46% of my CPU time, I think I'll pass. I think I can play the actual film in 4K with less CPU time than that.


Hm, does caching the result of each unique `tput` fix that?


I don't see any `tput`s inside the Main loop. Only at startup and exit. Comment at the top of my version (HEAD as of yesterday) says:

  # This version is optimized for speed by:
  # 1. Using direct ANSI escape codes instead of forking `tput` for every update.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: