Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Re: Re: Re: Why is there no "Download code" link next to Reply?

by theorbtwo (Prior)
on Oct 16, 2003 at 10:42 UTC ( #299707=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Re: Why is there no "Download code" link next to Reply?
in thread Why is there no "Download code" link next to Reply?

The slowness of PM is caused by DB slowness. (It's IO from the point of view of the web server. I don't know if it's CPU or disk from the point of view of the DB server, so I hesitate to call it "IO" without further specificis.) And actualy,your idea would cause a check if the cached version of downloadcode is up to date for each note displayed. But that's very minor compared to the overhead of displaying a new (full) page.


Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).


Comment on Re: Re: Re: Re: Why is there no "Download code" link next to Reply?
Re: Re: Re: Re: Re: Why is there no "Download code" link next to Reply?
by liz (Monsignor) on Oct 16, 2003 at 10:48 UTC
    ... But that's very minor compared to the overhead of displaying a new (full) page...

    But the replies are rendered many more times than a new full page. I was living under the wrong assumption that my change would not require a new database access. If it does so, I think I'll withdraw my suggestion as it most likely will make things worse with regards to response times on PM.

    Liz

Re: Re: Re: Re: Re: Why is there no "Download code" link next to Reply?
by zengargoyle (Deacon) on Oct 16, 2003 at 11:52 UTC

    why would it have to cause any further lookup? the node_id of the replies are in the HTML already, couldn't you just add a link to the node with displaytype=displaycode added?

    some code here

    Download this Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (21)
As of 2014-09-22 14:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (195 votes), past polls