Perl Monk, Perl Meditation | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
A couple of related general guidelines from On Coding Standards and Code Reviews:
On Interfaces and APIs cautions that library interfaces are very difficult to change once they become widely used - a fundamentally inefficient interface cannot be easily fixed later by optimizing. So it is not "premature optimization" to consider efficiency when designing public library interfaces. See Also
These experiences convinced me of don't assume measure and especially find a better algorithm! Perl Performance References
High Performance and Parallel Computing References
Extra Performance/Optimization References Added Later Bitwise Operations:
Benchmark:
Other:
From BrowserUk (2012-2015):
Two spookily similar nodes posted late 2021 (both requesting XS C code, both by new monks who won't show us their code):
Some old classics:
Other:
On CPAN: Some external references:
Mathematical:
Memory: Sorting: Multi-threading:
Compiler switches/flags:
I/O: PDL and Array Processing References RPerl References
See Also
Updated: Added Donald Knuth premature optimization quote and Alexandrescu/Sutter premature pessimization quotes and Rob Pike quotes. Mentioned efficiency of interfaces. Added more references. In reply to Re: declaring lexical variables in shortest scope: performance? (on Code Optimization and Performance References)
by eyepopslikeamosquito
|
|