<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: what are benefits of using for loop for creating objects and just creating t in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/what-are-benefits-of-using-for-loop-for-creating-objects-and/m-p/7674461#M11364</link>
    <description>&lt;P&gt;For loop is slower in general case, of course, but unless we're talking about tens of thousands of executions, you won't be able to measure that. You will spend much more time maintaining the code, however.&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jan 2018 09:14:53 GMT</pubDate>
    <dc:creator>Swordslayer</dc:creator>
    <dc:date>2018-01-09T09:14:53Z</dc:date>
    <item>
      <title>what are benefits of using for loop for creating objects and just creating them.</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/what-are-benefits-of-using-for-loop-for-creating-objects-and/m-p/7673465#M11361</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;aside from compactness in your code, is there any other benefits to creating multiple similar objects using a for loop compared to creating them line by line?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 22:30:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/what-are-benefits-of-using-for-loop-for-creating-objects-and/m-p/7673465#M11361</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-08T22:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: what are benefits of using for loop for creating objects and just creating t</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/what-are-benefits-of-using-for-loop-for-creating-objects-and/m-p/7673572#M11362</link>
      <description>&lt;P&gt;What about if you want to create 1000 objects? You will write 1000 lines of code for this? And if you have to edit this code later, you will edit 1000 lines one by one(let say that each obejct have a unique "property")? 10 000 objects?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 23:20:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/what-are-benefits-of-using-for-loop-for-creating-objects-and/m-p/7673572#M11362</guid>
      <dc:creator>miauuuu</dc:creator>
      <dc:date>2018-01-08T23:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: what are benefits of using for loop for creating objects and just creating t</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/what-are-benefits-of-using-for-loop-for-creating-objects-and/m-p/7673878#M11363</link>
      <description>&lt;P&gt;I understand your points, but I was asking about comparing performance or speed of execution when running the for loop verses no for loop,&amp;nbsp;nothing about the mechanics or time of writing it out in the first place or how many objects I am creating.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 03:21:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/what-are-benefits-of-using-for-loop-for-creating-objects-and/m-p/7673878#M11363</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-09T03:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: what are benefits of using for loop for creating objects and just creating t</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/what-are-benefits-of-using-for-loop-for-creating-objects-and/m-p/7674461#M11364</link>
      <description>&lt;P&gt;For loop is slower in general case, of course, but unless we're talking about tens of thousands of executions, you won't be able to measure that. You will spend much more time maintaining the code, however.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 09:14:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/what-are-benefits-of-using-for-loop-for-creating-objects-and/m-p/7674461#M11364</guid>
      <dc:creator>Swordslayer</dc:creator>
      <dc:date>2018-01-09T09:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: what are benefits of using for loop for creating objects and just creating t</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/what-are-benefits-of-using-for-loop-for-creating-objects-and/m-p/7683870#M11365</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;For loop is slower in general case, of course...&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;why do you think the loop is slower? from the parser point of view "loop" probably faster than several lines of code, which used only one in the loop's body&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 22:21:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/what-are-benefits-of-using-for-loop-for-creating-objects-and/m-p/7683870#M11365</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2018-01-11T22:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: what are benefits of using for loop for creating objects and just creating t</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/what-are-benefits-of-using-for-loop-for-creating-objects-and/m-p/7683894#M11366</link>
      <description>&lt;P&gt;If I had to guess, I'd say it's probably because it creates and destroys new scope. A real-world example of the speed benefit of loop unrolling is for example &lt;A href="http://forums.cgsociety.org/showpost.php?p=8027554&amp;amp;postcount=26" target="_blank"&gt;this one&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 22:28:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/what-are-benefits-of-using-for-loop-for-creating-objects-and/m-p/7683894#M11366</guid>
      <dc:creator>Swordslayer</dc:creator>
      <dc:date>2018-01-11T22:28:10Z</dc:date>
    </item>
  </channel>
</rss>

