Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^7: Group __DATA__ lines in a while?

by hdb (Monsignor)
on Nov 11, 2013 at 08:44 UTC ( [id://1061957]=note: print w/replies, xml ) Need Help??


in reply to Re^6: Group __DATA__ lines in a while?
in thread Group __DATA__ lines in a while?

Thanks for letting me know.

Are these scripts called every time someone visits your website? Or are they part of the build process of the website?

If your scripts get ever more complicated it might make sense to cache the resulting HTML files rather than generating them every time dynamically. The script could check whether the HTML file is older than the input file and only then generate output.

Replies are listed 'Best First'.
Re^8: Group __DATA__ lines in a while?
by Lady_Aleena (Priest) on Nov 11, 2013 at 10:14 UTC

    Each script is loaded into the browser every time. Storing the HTML would be huge. I came to perl to make my site as teeny-weeny as possible, and I have succeeded. Since I don't have to store so much HTML (some inline elements remain to be coded out), my site has gone from 10 MB (the max allowed on one web server) to a mere 2.5 MB with a lot more content and data! All of those HTML tags take up a lot of space.

    No matter how hysterical I get, my problems are not time sensitive. So, relax, have a cookie, and a very nice day!
    Lady Aleena
      gzip, its for internet :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1061957]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-16 18:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found