Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
programming is about algorithms.
fortunately, perl does a lot of work for you by offering data structures like hashes for free. but you should still have a clue what takes time and what not. you should know about algorithms in general and also a bit about the performance of the language you program in.
cpu cycles can matter faster than you think. if you program an application framework that uses modules, you can program for maximum maintainability. if you program a module which gets executed by a framework very often you might want to benchmark a bit. think about DBI. imagine it was written in pureperl and without any care for performance - oh my god, database interaction would be soo slow in perl. if no module author would care about speed, perl itself would be slow because cpan is part of the language somehow. i agree that a very small difference doesn't usually matter because it might be just a platform/version issue that changes in the next version, but to know how to benchmark and to get a feeling about efficiency does not hurt.

In reply to Re: CPU cycles DO NOT MATTER! by tinita
in thread CPU cycles DO NOT MATTER! by dragonchild

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2021-06-21 14:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (98 votes). Check out past polls.

    Notices?