offby1/rudybot — comment on commit bcdbeabc86c965af3dd6fc75964f8c4e9674b6f8
File:  line 0
By offby1:

A little bit. There's one thread that loads the log asynchronously at
startup; and there's another that handles the "witticisms" (i.e., when
you say something random to rudybot, it looks for some previous
utterance that includes a word from what you said). That thread
actually runs entirely synchronously (i.e., it blocks until the main
thread wants a witticism; then the main thread blocks until it gets
one) but it just seemed cleaner to write it using threads.

Otherwise, though, I haven't seen any need for threads; it's only on a
few channels at a time, and it never takes very long to respond.

On Mon, Feb 6, 2012 at 4:33 PM, Miles Bader

wrote:
> Wait, rudybot is _multi-threaded_?!
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/offby1/rudybot/commit/bcdbeabc86c965af3dd6fc75964f8c4e9674b6f8#commitcomment-938766