Python module, class and object load time and memory usage
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/13202198/python-doesnt-allocate-new-space-for-objects-instantiated-outside-the-construct">Python doesn’t allocate new space for objects instantiated outside the constructor of a class— expected behavior?</a>  </p>
</blockquote>



<p>I am planning to develop two class which is almost similar and thinking (in context of use such classes to build complex architecture):</p>

<ol>
<li>Which class be loaded faster during module load.</li>
<li>Which class will take less memory after loading.</li>
<li>Not care about initialization speed - memory and loading time is more important.</li>
</ol>

<p>First class:</p>

<pre><code>class ClassWithAttr(object):
  a = range(100)
  b = range(10)
</code></pre>

<p>Second class:</p>

<pre><code>class ClassWithoutAttr(object):
  def __init__(self):
    a = range(100)
    b = range(10)
</code></pre>

<p>Share some of your experiences to help others.</p>
