This makes me super happy to hear: on the other side async always makes me feel dumb, and your writing and work on async std has helped me to learn a lot! Thanks so much!
-
-
- End of conversation
New conversation -
-
-
The most important aspect of using them is causing race conditions to pop out in tests. Random delays before all atomic operations, and conditional compilation that increase contention under test. I just got my ass whooped after feeling good for a custom queue in sled xD
-
make buffers small: https://github.com/spacejam/sled/blob/e5cd1c9a386793d63dd17f6125ba65b2d792941d/src/lru.rs#L14-L18 … add delays: https://github.com/spacejam/sled/blob/e5cd1c9a386793d63dd17f6125ba65b2d792941d/src/lru.rs#L61-L67 … this combination caused 5 races to jump out in under 1 second of testing, and caused me to quickly change the design to avoid them. ASAN also caught some https://github.com/spacejam/sled/blob/e5cd1c9a386793d63dd17f6125ba65b2d792941d/scripts/sanitizers.sh#L11-L19 …
- 4 more replies
New conversation -
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.
