I have a module which has to maintain an internal state, and would be a good canditate for OOPLing. However, it is a Math Module, and I don't want to sacrifice too much speed. I havn't been able to find any online tutorials which give much text to efficient objects so I thought I'd ask a few directed questions here:
And yes, I know, "Go buy the Object Oriented Perl book." I think we can provide something a little more convenient and cheaper than that alternative. I think, optimally, a nice little Tutorial would be best. *hinthint* ;-)
- Is OOP always significantly slower than procedural?
- By how much?
- Are there some special traps to be avoided?
- Are there special techniques to erase the problems?