I am ready to scream. I just read the umpteenth post about the performance of a particular construct without any evidence that there actually is a performance problem. People are asking if a loop is faster than using functional style; they are asking if using an array is faster than using Vec; they are playing all sorts of games trying to avoid allocations. Is that really the best use of their time? Reading a post to find out that’s what they are talking about is not the best use of mine.
I learned long ago not to worry about performance until I have a performance problem. Of course, I choose an O(1) algorithm over an O(N) one, but I don’t worry about saving a few machine cycles in a function that’s only called a couple of times. Writing maintainable code is far more important than shaving a few percent off your execution time (unless you’re preparing for a benchmark competition, of course). Besides, you (by which I mean I) don’t know what the slow parts are until you run a hot spot analyzer.
Sorry for the rant, but I’m frustrated by a bug I can’t figure out, and I just needed to blow off some steam.