# Faster AS with less lines?

**URL:** <https://forum.kirupa.com/t/faster-as-with-less-lines/205868>\
**Category:** Uncategorized\
**Created:** [November 2, 2006, 7:53pm UTC](https://forum.kirupa.com/t/faster-as-with-less-lines/205868 "2006-11-02T19:53:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![VoS](https://avatars.discourse-cdn.com/v4/letter/v/22d042/32.png) [@VoS](https://forum.kirupa.com/u/VoS)\
**Post date:** [November 2, 2006, 7:53pm UTC](https://forum.kirupa.com/t/faster-as-with-less-lines/205868/1 "2006-11-02T19:53:00Z")

</div>

hey  
im curious about one thing…  
Which is better or is there a difference ( speed and processor consumption wise ) between writing  
[AS]x=1;  
x=x+1+x\*x;

or

x=1;  
x=x+1;  
x=x+x\*x;  
[/AS] this is offcourse a simplified version and could be made much more complex…  
but things add up. after a while maybe there are 20 lines of code which could be made redundant by compacting the lines…

so question is … Does it make a difference? (besides maybe easier to read)

//VoS
