💥 (wannabe) Ƀreaker of (the Bad) Loops 💫 Retweeted 💥 (wannabe) Ƀreaker of (the Bad) Loops 💫
Verified.
- 100% speedup
- Accumulated pickled runs retained safely
- Results identical (exactly) to prior runs
Not how I wanted to spend my day, but #win.https://twitter.com/generativist/status/1082037771764609024 …
💥 (wannabe) Ƀreaker of (the Bad) Loops 💫 added,
💥 (wannabe) Ƀreaker of (the Bad) Loops 💫 @generativist
1/ I use scipy.stats' frozen dists to encapsulate distributions in my ABM, then do rvs to generate random numbers one at a time.
Profiling showed this is slow *and* a bottleneck.
I cythonized some replacements -- 2x speedup.
Nice! But...
Show this thread
5:18 PM - 6 Jan 2019
0 replies
0 retweets
3 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.