Web Tool Bag  
Home · Articles · Downloads · Discussion Forum · Web Links · News Categories · Synonyms DatabaseNovember 19 2017 08:56:33
Navigation
Home
Articles
Downloads
Discussion Forum
Web Links
News Categories
Synonyms Database
Search
Users Online
Guests Online: 1
No Members Online

Registered Members: 856
Unactivated Members: 118
Newest Member: lakim
Forum Threads
Newest Threads
Uncaught Error: _reg...
Module build failed:...
Installation
mochi script questions
Redirect with captch...
Hottest Threads
Installation [12]
Any questions and... [5]
Captcha picture d... [4]
Integrate with Vi... [4]
Mods: Sucess/Than... [4]
 
Latest Articles
PHP Fatal error: Ca...
Mouse pointer disapp...
UBUNTU install via U...
Geany tried to acces...
How to create MySql ...
How to Optimize Loops
Sometimes you'll encounter loops, or recursive functions, that take a long time to execute and are
bottlenecks in your product. Before you try to make the loop a little faster, spend a few minutes
considering if there is a way to remove it entirely. Would a different algorithm do? Could you
compute that while computing something else? If you can't find away around it, then you can optimize
the loop. This is simple; move stuff out. In the end, this will require not only ingenuity but
also an understanding of the expense of each kind of statement and expression. Here are some suggestions:

• Remove floating point operations.

• Don't allocate new memory blocks unnecessarily.

• Fold constants together.

• Move I/O into a buffer.

• Try not to divide.

• Try not to do expensive typecasts.

• Move a pointer rather than recomputing indices.

The cost of each of these operations depends on your specific system. On some systems compilers
and hardware do these things for you. Clear, efficient code is better than code that requires an understanding
of a particular platform.

Posted by admin on July 12 2010 13:36:15 3933 Reads · Print
Ratings
Rating is available to Members only.

Please login or register to vote.

No Ratings have been Posted.
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Member Poll
Which PHP framework do you preffer?

Symfony

Zend

CodeIgniter

PHP on TRAX

eZ Components

Fusebox

PhpOpenbiz

Prado

QPHP

Seagull

You must login to vote.
Shoutbox
You must login to post a message.

Vince
03/10/2011 21:17
Hi, How to remove Register from Login screen? I don't want them to register and have full access! if you leave register then they should not have any rights until the admin assigns them

webtoolz
26/09/2011 11:28
Please describe your problem with more details. Thank you.

bimmer98
22/11/2010 20:31
Help. There was a problem with the request; error regarding feedbackzdr form program

Copyright © 2017 - www.webtoolbag.com