rustwasm / book

The Rust and WebAssembly Book
https://rustwasm.github.io/docs/book/
MIT License
1.73k stars 208 forks source link

Add a note about how to refactor code after performance gains. #124

Open jwir3 opened 5 years ago

jwir3 commented 5 years ago

Summary

Add a note about how to refactor code after performance gains.

Explain the motivation for making this change. What existing problem does the pull request solve? 🤔

Refactoring should be a part of the development cycle. Encouraging this behavior, even when practicing, is good for the developer.

jwir3 commented 5 years ago

In fact, it looks like you started going down that route, but then abandoned it.

Yep, I did. I didn't quite know the best place to put it, so I can move it to an example.