blah blah blah is here! blah blah » Close

up0down
link

Hey, I have a site that I am making (<a href="http://handman.tzo.net:8084">http://handman.tzo.net:8084</a>) that loads pretty slow when the user hits the page for the first time.
I understand that the JIT is compiling it and the whole thing... But my question is there anyway to make the site load up any faster?
For example: this site (CSharpFriends.com) loads up fast compared to my site. What did you guys do?

last answered 2 years ago

1 answers

up0down
link

Loads quickly for me.

up0down
link

The reason why it loaded quickly for you is because the site was still in memory. By default, ASP.Net apps will stay in mem for 20 mins. I question is there a way to always keep the site in memory?

up0down
link

Actually it is not that. The very first hit takes time. From then onwards performance would be good, until you refresh your webserver.

up0down
link

Do you know what can be done about it??

up0down
link

Pre-compile everything....

up0down
link

what do you mean by "pre-compile"? Could you give me an example?

up0down
link

Paul Wilson has developed a pre-compile app, but I have not tried it yet:
http://aspalliance.com/PaulWilson/Articles/?id=9
I downloaded it. There is very little code to it. You can add the code yourself or use his own assembly.

up0down
link

Thanks alot!!

up0down
link

You could use .dll's in the GAC. The .dll don't need to use the JIT. I haven't used that technique, but I do recall the subject and that it would really increase load speed. I will go back and find where it was referenced and give you that information, book, chapt, author etc.

up0down
link

Yep. You are right. We did that in our current project. We have developed our own framework, which actually serializes the UI completely and then the same serialized UI Data is used for various by-apps and other apps. Initially we did put that one local. The we thought, why can't we push it to GAC, so it would be shared among the applications and thence loading multiple copies of the same, when all the apps are hosted on the same box and running on top of same runtime. This framework comprises UI, security and some XML stuff used to serialize the UI and security roles. Then really the app started performing very well and loads faster.

up0down
link

Could u post a link

up0down
link

Wait for a week, once our system goes into production, I could post the framework design and code here. :-)

This post was imported from csharpfriends, if you have a similiar question please ask it again.

All previous members have been migrated, hope you enjoy the new platform!

Feedback