perl - What does Class::MethodMaker exactly do? -


i want know sequence of calls occurs when getter/setter created through class::methodmaker called?

how costlier getter/setters defined methodmaker native ones (overwritten in module)?

i don't have simple answer question regarding class::methodmaker performance. previous answer mentioned, can use debugger find out what's going on under hood. however, know class::methodmaker generates huge amounts of code @ install time. indicate 3 separate things me:

  1. regarding run-time, it's probably on faster side of whole slew of method generators. why generate loads of code @ install time otherwise?
  2. it installs o(megabytes) of code on disk!
  3. it may potentially slow @ compile time, depending on parts of generated code loaded simple use cases.

you need spend few minutes think need. if want simple accessor methods auto-generated write more complicated hand, maybe @ class::accessor::fast. or, if want fastest possible accessor-methods, investigate class::xsaccessor, extra-simple methods run c/xs code , approximately twice fast fastest perl accessor. (note: wrote latter module, take grain of salt.)

one further comment: if you're ever going use par/par::packer toolkit packaging application, note large amount of code of class::methodmaker results in larger executable , slower initial start-up time. additionally, there's known incompatibility between c::methodmaker , par. may considered par bug.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -