Object-oriented programs run slightly slower [....] If you can get away without using object orientation, you probably should.
What a horrible conclusion. An equivalent conclusion is "If it is possible to do something in C or C++, then you probably should just not do it in Perl."
What are usually rather trivial run-time performance differences should have nearly zero bearing on your choice of approach. Even if your OO experiment found that the OO code was consistently 20% slower than the non-OO code, that is unlikely to be a significant factor in evaluating whether or not to use OO for that case (are you even going to notice most of the time if your script takes 3 seconds to run instead of 3.6 seconds to run?).
Clearly it shouldn't be the single most important factor. That particular comment should be simply and easily dismissed.
- tye
In reply to Re: When to Use Object Oriented approach in Perl? (gah)
by tye
in thread When to Use Object Oriented approach in Perl? (RFC)
by thanos1983
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |