Do white spaces in code, mean less optimisation?
Do white spaces in code, mean less optimisation?
Do white spaces in code, mean less optimisation?
Do white spaces in code, mean less optimisation?
Do white spaces in code, mean less optimisation?
Do white spaces in code, mean less optimisation? Do white spaces in code, mean less optimisation? Do white spaces in code, mean less optimisation? Do white spaces in code, mean less optimisation? Do white spaces in code, mean less optimisation? Do white spaces in code, mean less optimisation? Do white spaces in code, mean less optimisation? Do white spaces in code, mean less optimisation?
Do white spaces in code, mean less optimisation? Do white spaces in code, mean less optimisation?
Do white spaces in code, mean less optimisation?
Go Back  Xtreme Visual Basic Talk > > > Do white spaces in code, mean less optimisation?


Reply
 
Thread Tools Display Modes
  #1  
Old 06-03-2011, 12:50 AM
45minutes 45minutes is offline
Regular
 
Join Date: Jan 2011
Posts: 75
Default Do white spaces in code, mean less optimisation?


Does code with less white lines extra, run smoother? or does it not matter as all code gets crammed together when compiled?

Last edited by 45minutes; 06-03-2011 at 01:45 AM.
Reply With Quote
  #2  
Old 06-03-2011, 03:31 AM
PlausiblyDamp's Avatar
PlausiblyDampDo white spaces in code, mean less optimisation? PlausiblyDamp is offline
Ultimate Contributor

Forum Leader
* Expert *
 
Join Date: Nov 2003
Location: Newport, Wales
Posts: 2,058
Default

Whitespace, newlines, comments, variable names, method names, class names and so on have no effect on the runtime performance of your code.

Write code to be read by a person, not to be optimised for the computer as the compiler can do a decent job of sorting out optimisations, if it still runs slow then consider changing the code to a more optimal form - still keep a good naming scheme and a good, clear formatting style though.
__________________
Intellectuals solve problems; geniuses prevent them.
-- Albert Einstein

Posting Guidelines Forum Rules Use the code tags
Reply With Quote
  #3  
Old 06-03-2011, 05:39 AM
45minutes 45minutes is offline
Regular
 
Join Date: Jan 2011
Posts: 75
Default

Quote:
Originally Posted by PlausiblyDamp View Post
Whitespace, newlines, comments, variable names, method names, class names and so on have no effect on the runtime performance of your code.

Write code to be read by a person, not to be optimised for the computer as the compiler can do a decent job of sorting out optimisations, if it still runs slow then consider changing the code to a more optimal form - still keep a good naming scheme and a good, clear formatting style though.
thanks, yeah I had thought this was most likely the case.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Do white spaces in code, mean less optimisation?
Do white spaces in code, mean less optimisation?
Do white spaces in code, mean less optimisation? Do white spaces in code, mean less optimisation?
Do white spaces in code, mean less optimisation?
Do white spaces in code, mean less optimisation?
Do white spaces in code, mean less optimisation? Do white spaces in code, mean less optimisation? Do white spaces in code, mean less optimisation? Do white spaces in code, mean less optimisation? Do white spaces in code, mean less optimisation? Do white spaces in code, mean less optimisation? Do white spaces in code, mean less optimisation?
Do white spaces in code, mean less optimisation?
Do white spaces in code, mean less optimisation?
 
Do white spaces in code, mean less optimisation?
Do white spaces in code, mean less optimisation?
 
-->