title: asp.net c# speed up of classes
body: <p>I work on a big project in company. We collect data which we get via API methods of the CMS.</p>
  
  <p>ex. </p>
  
  <pre><code>DataSet users = CMS.UserHelper.GetLoggedUser(); // returns dataset with users
  </code></pre>
  
  <p>Now on some pages we need many different data, not just users, also Nodes of the tree of the CMS or specific data of subtreee.</p>
  
  <p>So we thought of write an own "helper class" in which we later can get different data easy.</p>
  
  <p>ex: </p>
  
  <pre><code>MyHelperClass.GetUsers();
  MyHelperClass.Objects.GetSingleObject( ID );
  </code></pre>
  
  <p>Now the problem is our "Helper Class" is really big and now we like to collect different data from the "Helper Class" and write them into a typed dataset . Later we can give a repeater that typed dataset which contains data from different tables. (which even comes from the methods I wrote before via API)</p>
  
  <p>Problem is: It is so slow now, even at loading the page! Does it load or init the whole class??</p>
  
  <p>By the way CMS is Kentico if anyone works with it.</p>
  
  <p>I'm tired. Tried whole night..but it's soooo slow. Please give a look to that architecture.
  May be you find some crimes which are not allowed :S</p>
  
  <p>I hope we get it work faster. Thank you.</p>
  
  <p><a href="http://img705.imageshack.us/img705/3087/classj.jpg" rel="nofollow noreferrer">alt text http://img705.imageshack.us/img705/3087/classj.jpg</a></p>