Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: Re: Processing data with lot of math...

by ysth (Canon)
on May 12, 2004 at 23:14 UTC ( [id://352921]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Processing data with lot of math...
in thread Processing data with lot of math...

Because there's no point in optimizing until you have triaged your algorithm (irremedially slow, a little too slow, or fast enough). If I were certain what form the original questioner's points stored in, I would have even used a distance() sub. Code should be written for minimum conceptual complexity and then optimized only if needed, and having a separate $cutoff_squared checking against a square distance is beyond my minimum. YMMV.

Update: the above is obviously hypocritical; I get sucked into premature optimization and complexity fascination all the time.

  • Comment on Re: Re: Re: Processing data with lot of math...

Replies are listed 'Best First'.
Re: Re: Re: Re: Processing data with lot of math...
by qhayaal (Beadle) on May 13, 2004 at 08:51 UTC
    Oops, my reply lies above. Please forgive me this time. Was not aware what I was doing..., presumed that the reply will come at the bottom. :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://352921]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-25 04:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found