3 ms·
While a complete re-write can be fun, in my experience it's usually not the best course of action. In decreasing order of most bang for your buck (your mileage
by mattpallissard 4y ago
While a complete re-write can be fun, in my experience it's usually not the best course of action. In decreasing order of most bang for your buck (your mileage may vary)
* Profile the code, clean up the hot paths in the native language.
* If it makes sense, implement as a c-extension
* Restructure your application to handle concurrency/parallelism. Lots of options to try here; thread pools, external task queues, break your application into multiple services.
* Re-write one of the smaller services you spun out in the language of your choice.
Edit: formatting
- xwowsersx 4y agoThis makes sense. I totally get the starry-eyed, romantic appeal of rewriting in your new favorite language, but I know that maturity would counsel for a good dose of conservatism when it comes to this.