You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Timing code seen here: https://repl.it/repls/BetterWideCopyright
Destructing and rebuilding a datetime runs on average about 4 times as slow as just using a datetime.datetime.now().
Additionally, as you don't care for the microsecond differences in the time, building the datetime for each follower currently increases the overhead about a thousandfold and linearly takes longer the more followers you get.
TwitchBot/bot.py
Lines 207 to 227 in 28e2a8d
and
TwitchBot/bot.py
Lines 234 to 237 in 28e2a8d
Why not use
currentDateTime = datetime.datetime.now()
?The text was updated successfully, but these errors were encountered: