|
-
Apr 30th, 2002, 02:46 PM
#1
Thread Starter
Member
Reading ASP buffer
Hello,
Is there a way to read a page generated in the buffer back into a variable?
I am trying to save a complex dynamic page in a static one to reduce overhead....
Any thoughts?
Scott
-
May 1st, 2002, 10:04 AM
#2
Frenzied Member
Uh... am I missing something here? If you make it static it will be the same for everyone which would defeat the purpose of generating it dynamically. If you don't need it to be dynamic, why is it?
I'm a bit confused. I don't see any way this will make it faster because you are then taking it out of the server's memory and putting it back into the server's memory again. It's alot faster for the server to simply send it from memory to the html stream.
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
-
May 1st, 2002, 01:33 PM
#3
Black Cat
Originally posted by monte96
Uh... am I missing something here? If you make it static it will be the same for everyone which would defeat the purpose of generating it dynamically. If you don't need it to be dynamic, why is it?
I'm a bit confused. I don't see any way this will make it faster because you are then taking it out of the server's memory and putting it back into the server's memory again. It's alot faster for the server to simply send it from memory to the html stream.
I can't really help with the actual question except suggesting to look at some kind of ISAPI wrapper (?), but suppose you have some .asp pages that generate a phone list of employees from a database. However, the phone numbers in the database only get updated once or twice a month. Is it worth is to query the database every time someone looks at these pages, or just re-create static html documents when the DB is updated?
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
May 2nd, 2002, 08:48 AM
#4
Thread Starter
Member
I work at a University. The helpdesk home page contains an expensive to compute "blog" list of headlines.
All of the computer lab computers have this page set as default so the page gets many hits per day. Since the server has many other uses, I don't want to load it down with something that is a waste of processor power.
The trouble is that the way the blog is printed out is using tons of <%= %> commands everywhere so it would take a considerable amount to time to reformat that into loading a variable. After the variables is loaded I can write into a static file.
Thanks,
Scott
-
May 2nd, 2002, 09:05 AM
#5
Frenzied Member
It sounds like you need a server side script that will rewrite a static page once a day (or however often). In other words, you don't need to use ASP at all. You just have a shell script, or a batch job, or a stored procedure, or something that is scheduled to update this page.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|