CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2013

    Loops increase the time of execution

    I read that if your code is having no loop than it will work faster and we should avoid the loops. But how can it be possible to avoid loops? Without loops coding can not be done. How can they say that loops should be ignored? Can one help me if he/she knows the answer?

  2. #2
    Join Date
    Jul 2001
    Sunny South Africa

    Re: Loops increase the time of execution

    I don't think anyone literally said to ignore loops totally, as that would be impossible mostly.

    People tend to use loop wrong, and depending on what they do inside the loop, that will eat your processor up.

  3. #3
    Join Date
    Jun 2005
    JHB South Africa

    Re: Loops increase the time of execution

    Quote Originally Posted by HanneSThEGreaT View Post
    ......that will eat your processor up.
    LOL when you put it that way i think of this
    Name:  Packman eat CPU.jpg
Views: 45
Size:  29.3 KB
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.