Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 520731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:10:33+00:00 2026-05-13T08:10:33+00:00

I work on a big project in company. We collect data which we get

  • 0

I work on a big project in company. We collect data which we get via API methods of the CMS.

ex.

DataSet users = CMS.UserHelper.GetLoggedUser(); // returns dataset with users

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.

So we thought of write an own “helper class” in which we later can get different data easy.

ex:

MyHelperClass.GetUsers();
MyHelperClass.Objects.GetSingleObject( ID );

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)

Problem is: It is so slow now, even at loading the page! Does it load or init the whole class??

By the way CMS is Kentico if anyone works with it.

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

I hope we get it work faster. Thank you.

alt text http://img705.imageshack.us/img705/3087/classj.jpg

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T08:10:34+00:00Added an answer on May 13, 2026 at 8:10 am

    Bottlenecks usually come in a few forms:

    • Slow or flakey network.
    • Heavy reading/writing to disk, as disk IO is 1000s of times slower than reading or writing to memory.
    • CPU throttle caused by long-running or inefficiently implemented algorithm.

    Lots of things could affect this, including your database queries and indexes, the number of people accessing your site, lack of memory on your web server, lots of reflection in your code, just plain slow hardware etc. No one here can tell you why your site is slow, you need to profile it.


    For what its worth, you asked a question about your API architecture — from a code point of view, it looks fine. There’s nothing wrong with copying fields from one class to another, and the performance penalty incurred by wrapper class casting from object to Guid or bool is likely to be so tiny that its negligible.

    Since you asked about performance, its not very clear why you’re connecting class architecture to performance. There are really really tiny micro-optimizations you could apply to your classes which may or may not affect performance — but the four or five nanoseconds you’ll gain with those micro-optimizations have already been lost simply by reading this answer. Network latency and DB queries will absolutely dwarf the performance subtleties of your API.

    In a comment, you stated “so there is no problem with static classes or a basic mistake of me“. Performance-wise, no. From a web-app point of view, probably. In particular, static fields are global and initialized once per AppDomain, not per session — the variables mCurrentCultureCode and mcurrentSiteName sound session-specific, not global to the AppDomain. I’d double-check those to see your site renders correctly when users with different culture settings access the site at the same time.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am a big fan of letting the compiler do as much work for
Server virtualization is a big thing these days, so I'm tasked at work to
At work we are being asked to create XML files to pass data to
My company's main software package includes a hefty configuration library which loads on startup.
I have a big project with branches. All development is concentrated in the branch.
This is a two part question: I am working on a big project where
At work we are currently still using JUnit 3 to run our tests. We
I work in VBA, and want to parse a string eg <PointN xsi:type='typens:PointN' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
I work with C# at work but dislike how with webforms it spews out
At work, we have multiple branches that we may be working on at any

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.