https://nathangodey.github.io/posts/sm-bottleneck/