New data is uploaded each week.

That looks like quite a useful bit of code. Can you do the same with
swf's?

I'll not bother implementing it at the moment though as the slow down
seems to be downloading the swf's and not processing it but I'll keep it
in mind for the future.

Giles Roadnight
http://giles.roadnight.name


-----Original Message-----
From: Tim Blair [mailto:[EMAIL PROTECTED] 
Sent: 29 March 2004 14:30
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] CFChart performance


> But they take a while to appear. Is this because the server is
> generating them each time the page is called?
 
Just an idea:
 
Will the information in the graphs ever change?  If not you could
generate the graph and write the output to a different file and include
that directly in an <img> tag.  E.g., this is a basic example that only
"regenerates" the graph if the appropriate file doesn't already exists:
 
<!--- define the name of the image file --->
<cfset variables.chartfile = "myimage.png">
 
<!--- already got hte graph? --->
<cfif NOT fileexists(expandpath("myimage.png"))>
    <!--- generate the chart --->
    <cfchart name="variables.chartbuffer" format="png" ... >
        ...
    </cfchart>
    <!--- write to a static file --->
    <cffile charset="ISO-8859-1" action="write"
            file="#expandpath("myimage.png")#"
            output="#variables.chartbuffer#">
</cfif>
 
<!--- output the image --->
<cfoutput><img src="#variables.chartfile#"></cfoutput>

Doing this will save execution time on the server and you could also
generate a seperate graph for each driver, for example.

Tim.

--
-------------------------------------------------------
<CF_CodingContest mode="judging" newentries="false">
Maze Solver - http://tech.badpen.com/cfcontest/
-------------------------------------------------------
RAWNET LTD - Internet, New Media and ebusiness Gurus.
WE'VE MOVED - for our new address, please visit our
website at http://www.rawnet.com/ or call us any time
on 0800 294 24 24.
-------------------------------------------------------
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
------------------------------------------------------- 

-- 
These lists are syncronised with the CFDeveloper forum at
http://forum.cfdeveloper.co.uk/
Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
 
CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF
provided by activepdf.com*
      *Forums provided by fusetalk.com* :: *ProWorkFlow provided by
proworkflow.com*
           *Tutorials provided by helmguru.com* :: *Lists hosted by
gradwell.com*

To unsubscribe, e-mail: [EMAIL PROTECTED]



-- 
These lists are syncronised with the CFDeveloper forum at 
http://forum.cfdeveloper.co.uk/
Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
 
CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by 
activepdf.com*
      *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com*
           *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com*

To unsubscribe, e-mail: [EMAIL PROTECTED]

Reply via email to