View Single Post
Old 03-02-2010, 05:52 PM   #346
DawnFalcon
Banned
DawnFalcon plays well with othersDawnFalcon plays well with othersDawnFalcon plays well with othersDawnFalcon plays well with othersDawnFalcon plays well with othersDawnFalcon plays well with othersDawnFalcon plays well with othersDawnFalcon plays well with othersDawnFalcon plays well with othersDawnFalcon plays well with othersDawnFalcon plays well with others
 
Posts: 2,094
Karma: 2682
Join Date: Aug 2009
Device: N/A
Quote:
Originally Posted by Elfwreck View Post
And the more verbose the coding, the longer the book takes to load.
Untrue. Badly untrue, and indeed I'd call this an urban legend.

In some cases, additional verbosity can lead to slower load times. However, there are many causes where the direct opposite is true - by being specific, you can eliminate areas where the software has to look up defaults, make assumptions based on other data and generally "decide what to do".

For example, handling inheritance in CSS is often extremely slow, since there are multiple, often conflicting rules which must be applied. While something like XPath is overkill, a better defined inheritance model - which would almost certainly be more verbose - would be considerably faster.

(Also, CSS is not code, it's script!)
DawnFalcon is offline   Reply With Quote