RE: Using Application.cfc has decreased performance
Sean, yes that is what I meant, thanks! :) And I also meant lines like these into each template (which is basically just a cause of bad architecture imo). You still see these construction very often. cfif NOT isDefined('session.loggedIn') cflocation url=login.cfm /cfif Micha Schopman Software Engineer Modern Media, Databankweg 12 M, 3821 AL Amersfoort Tel 033-4535377, Fax 033-4535388 KvK Amersfoort 39081679, Rabo 39.48.05.380 - Modern Media, Making You Interact Smarter. Onze oplossingen verbeteren de interactie met uw doelgroep. Wilt u meer omzet, lagere kosten of een beter service niveau? Voor meer informatie zie www.modernmedia.nl - -Original Message- From: Sean Corfield [mailto:[EMAIL PROTECTED] Sent: vrijdag 11 februari 2005 22:48 To: CF-Talk Subject: Re: Using Application.cfc has decreased performance On Fri, 11 Feb 2005 09:46:46 +0100, Micha Schopman [EMAIL PROTECTED] wrote: One thing people need to keep in mind, is that effectively there will be no real degrade of performance. You only move logic for checking session state (and people have been logged in or not) from the template normally called after application.cfm, to application.cfc. Just to clarify what I think Micha means... If you have code in Application.cfm that says: cfapplication name=someapp .../ cfif not structKeyExists(application,'init') cflock scope=application type=exclusive timeout=10 . do a bunch of application init ... /cflock /cfif cfif not structKeyExists(session,'user') cflock scope=application type=exclusive timeout=10 . do a bunch of session init ... /cflock /cfif . a bunch of variables / request setup ... When you change this to Application.cfc you'll end up with: cfcomponent cfset this.name = someapp . cffunction name=onApplicationStart . do a bunch of application init ... /cffunction cffunction name=onSessionStart . do a bunch of session init ... /cffunction cffunction name=onRequest cfargument name=targetPage . a bunch of variables / request setup ... cfinclude template=#targetPage# /cffunction /cfcomponent Note several things: 1. you no longer need to lock 2. you no longer need to test for app / session init on every request - CF does it automatically 3. only onRequest is called on every request - onApplicationStart is called just once per application and onSessionStart is called just once per session. So overall you gain performance from not having tests for app / session but you lose performance for a function call and an include. I think it's a small price to pay for the benefits of cleaner initialization. -- Sean A Corfield -- http://www.corfield.org/ Team Fusebox -- http://www.fusebox.org/ Breeze Me! -- http://www.corfield.org/breezeme Got Gmail? -- I have 49, yes 49, invites to give away! If you're not annoying somebody, you're not really alive. -- Margaret Atwood ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194686 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Using Application.cfc has decreased performance
You run into projects where people put a line like that in every single template? I could maybe see in the application.cfm but in every single template? Ugh ... ok ... I need some caffiene now On Tue, 15 Feb 2005 09:39:05 +0100, Micha Schopman [EMAIL PROTECTED] wrote: Sean, yes that is what I meant, thanks! :) And I also meant lines like these into each template (which is basically just a cause of bad architecture imo). You still see these construction very often. cfif NOT isDefined('session.loggedIn') cflocation url=login.cfm /cfif Micha Schopman Software Engineer ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194716 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Using Application.cfc has decreased performance
Yep, And the most astonishing part is, those projects have been created by a Macromedia Certified Trainer. I have never seen so many bad and unstable code. I don't understand such a person is allowed to train others. Micha Schopman Software Engineer Modern Media, Databankweg 12 M, 3821 AL Amersfoort Tel 033-4535377, Fax 033-4535388 KvK Amersfoort 39081679, Rabo 39.48.05.380 - Modern Media, Making You Interact Smarter. Onze oplossingen verbeteren de interactie met uw doelgroep. Wilt u meer omzet, lagere kosten of een beter service niveau? Voor meer informatie zie www.modernmedia.nl - -Original Message- From: Aaron Rouse [mailto:[EMAIL PROTECTED] Sent: dinsdag 15 februari 2005 14:49 To: CF-Talk Subject: Re: Using Application.cfc has decreased performance You run into projects where people put a line like that in every single template? I could maybe see in the application.cfm but in every single template? Ugh ... ok ... I need some caffiene now On Tue, 15 Feb 2005 09:39:05 +0100, Micha Schopman [EMAIL PROTECTED] wrote: Sean, yes that is what I meant, thanks! :) And I also meant lines like these into each template (which is basically just a cause of bad architecture imo). You still see these construction very often. cfif NOT isDefined('session.loggedIn') cflocation url=login.cfm /cfif Micha Schopman Software Engineer ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194724 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Using Application.cfc has decreased performance
I do not put much value into certified anything. I know some people really do have some great skills and get certified but also know of some people who really do not have a complete grasps of a technology and are certified. Just recently I heard a Coldfsuion(CFMX) Certified developer say something along the lines of well I never use application variables, for one the only place you can set them is in the application.cfm There was more to the quote, all I could think of at the time was, people like this is what gives languages a bad rep. On Tue, 15 Feb 2005 15:11:23 +0100, Micha Schopman [EMAIL PROTECTED] wrote: Yep, And the most astonishing part is, those projects have been created by a Macromedia Certified Trainer. I have never seen so many bad and unstable code. I don't understand such a person is allowed to train others. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194727 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Using Application.cfc has decreased performance
O M G. -Original Message- From: Aaron Rouse [mailto:[EMAIL PROTECTED] Sent: Tuesday, 15 February 2005 10:21 To: CF-Talk Subject: Re: Using Application.cfc has decreased performance I do not put much value into certified anything. I know some people really do have some great skills and get certified but also know of some people who really do not have a complete grasps of a technology and are certified. Just recently I heard a Coldfsuion(CFMX) Certified developer say something along the lines of well I never use application variables, for one the only place you can set them is in the application.cfm There was more to the quote, all I could think of at the time was, people like this is what gives languages a bad rep. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194730 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Using Application.cfc has decreased performance
Really astonished .. certification is a laugh. There are no real world examples, only what is in the book. Micha Schopman Software Engineer Modern Media, Databankweg 12 M, 3821 AL Amersfoort Tel 033-4535377, Fax 033-4535388 KvK Amersfoort 39081679, Rabo 39.48.05.380 - Modern Media, Making You Interact Smarter. Onze oplossingen verbeteren de interactie met uw doelgroep. Wilt u meer omzet, lagere kosten of een beter service niveau? Voor meer informatie zie www.modernmedia.nl - -Original Message- From: James Holmes [mailto:[EMAIL PROTECTED] Sent: dinsdag 15 februari 2005 15:26 To: CF-Talk Subject: RE: Using Application.cfc has decreased performance O M G. -Original Message- From: Aaron Rouse [mailto:[EMAIL PROTECTED] Sent: Tuesday, 15 February 2005 10:21 To: CF-Talk Subject: Re: Using Application.cfc has decreased performance I do not put much value into certified anything. I know some people really do have some great skills and get certified but also know of some people who really do not have a complete grasps of a technology and are certified. Just recently I heard a Coldfsuion(CFMX) Certified developer say something along the lines of well I never use application variables, for one the only place you can set them is in the application.cfm There was more to the quote, all I could think of at the time was, people like this is what gives languages a bad rep. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194732 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Using Application.cfc has decreased performance
From: Micha Schopman [mailto:[EMAIL PROTECTED] Really astonished .. certification is a laugh. There are no real world examples, only what is in the book. Why do you and many others have such a negative attitude towards certifications? ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194737 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Using Application.cfc has decreased performance
I have one, at times, because of things like the example I posted earlier. I see someone who at first glance has years of experience, decent little resume, and some certifications. They appear to be knowing what they are doing when you look at it all, but when you weed through the fluff they are really lacking in some major ways. The sad thing with certifications is a lot of them you can just buy a book, read through it and more than likely pass the exam yet not really know anything a week later when you forget the book. On Tue, 15 Feb 2005 09:39:28 -0500, Michael T. Tangorre [EMAIL PROTECTED] wrote: Why do you and many others have such a negative attitude towards certifications? ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194740 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Using Application.cfc has decreased performance
I have a very positive attitude towards certifications in general, but the CF certifications are too much aimed at the theory and in general to easy. Compare it against the difficulty of for example, Microsoft programming examinations, and you get a whole different picture of the person behind the test. Maybe it is different in the US, but here, MM certifications have little value in job interviews. Micha Schopman Software Engineer Modern Media, Databankweg 12 M, 3821 AL Amersfoort Tel 033-4535377, Fax 033-4535388 KvK Amersfoort 39081679, Rabo 39.48.05.380 - Modern Media, Making You Interact Smarter. Onze oplossingen verbeteren de interactie met uw doelgroep. Wilt u meer omzet, lagere kosten of een beter service niveau? Voor meer informatie zie www.modernmedia.nl - -Original Message- From: Michael T. Tangorre [mailto:[EMAIL PROTECTED] Sent: dinsdag 15 februari 2005 15:39 To: CF-Talk Subject: RE: Using Application.cfc has decreased performance From: Micha Schopman [mailto:[EMAIL PROTECTED] Really astonished .. certification is a laugh. There are no real world examples, only what is in the book. Why do you and many others have such a negative attitude towards certifications? ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194742 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Using Application.cfc has decreased performance
I think certifications have value. They establish a baseline of knowledge regarding syntax, familiarity with the language, and some knowledge as to how the language works (the CF exam has some very fun and sometimes tricky questions dealing with evaluation). They should _not_, however, be taken as a statement that the person has any idea how to actually use the language to solve a business problem in an efficient manner. I'd really like to see a seperate Advanced ColdFusion MX 7 certification that focused on best practices and possibly some architectural concepts. -Joe On Tue, 15 Feb 2005 09:39:28 -0500, Michael T. Tangorre [EMAIL PROTECTED] wrote: From: Micha Schopman [mailto:[EMAIL PROTECTED] Really astonished .. certification is a laugh. There are no real world examples, only what is in the book. Why do you and many others have such a negative attitude towards certifications? ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194743 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Using Application.cfc has decreased performance
And questions are like What is or does cfoutput ?: A: A car B: A flower C: A type of applepie D: A bottle E: Displays output that can contain the results of processing ColdFusion variables and functions. Can loop over the results of a database query. Micha Schopman Software Engineer Modern Media, Databankweg 12 M, 3821 AL Amersfoort Tel 033-4535377, Fax 033-4535388 KvK Amersfoort 39081679, Rabo 39.48.05.380 - Modern Media, Making You Interact Smarter. Onze oplossingen verbeteren de interactie met uw doelgroep. Wilt u meer omzet, lagere kosten of een beter service niveau? Voor meer informatie zie www.modernmedia.nl - -Original Message- From: Aaron Rouse [mailto:[EMAIL PROTECTED] Sent: dinsdag 15 februari 2005 15:47 To: CF-Talk Subject: Re: Using Application.cfc has decreased performance I have one, at times, because of things like the example I posted earlier. I see someone who at first glance has years of experience, decent little resume, and some certifications. They appear to be knowing what they are doing when you look at it all, but when you weed through the fluff they are really lacking in some major ways. The sad thing with certifications is a lot of them you can just buy a book, read through it and more than likely pass the exam yet not really know anything a week later when you forget the book. On Tue, 15 Feb 2005 09:39:28 -0500, Michael T. Tangorre [EMAIL PROTECTED] wrote: Why do you and many others have such a negative attitude towards certifications? ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194745 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Using Application.cfc has decreased performance
From: Micha Schopman [mailto:[EMAIL PROTECTED] Compare it against the difficulty of for example, Microsoft programming examinations, and you get a whole different picture of the person behind the test. MS certifications can be a joke as well. I know MANY people who study the tests, buy the books, take the tests, and a week later remember nothing because they learned nothing, they only remembered for a short while. Obviosuly the same holds true for MM certs. The point is that they do carry some weight IMO; they help show that people have some clue into the language and its' syntax; it shows they at least have an interest in the language... doesn't that weigh more when comparing two people of seemingly equal skill sets and experience where one has a cert and the other does not? ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194746 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Using Application.cfc has decreased performance
I hope that is a joke. :) One day I will go take that exam, just always so easy to put off for more important things I have going on. On Tue, 15 Feb 2005 15:52:46 +0100, Micha Schopman [EMAIL PROTECTED] wrote: And questions are like What is or does cfoutput ?: A: A car B: A flower C: A type of applepie D: A bottle E: Displays output that can contain the results of processing ColdFusion variables and functions. Can loop over the results of a database query. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194747 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Using Application.cfc has decreased performance
From: Joe Rinehart [mailto:[EMAIL PROTECTED] I'd really like to see a seperate Advanced ColdFusion MX 7 certification that focused on best practices and possibly some architectural concepts. Ditto. The MM cert exam is sometimes tricky... the answers are not obvious and you often times have to think through multiple situations for the best answer. As Joe mentioned, an exam that also touched on best practices, and more importantly, architectural concepts would be great ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194748 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Using Application.cfc has decreased performance
I know people who have done that for the MCSE, ever seen someone who has done it for the Microsoft DBA one? I know a few MSSQL people who study their butts off for that one and still failed it. Just curious if people have managed to pass it without knowing anything prior to picking up study guides. Maybe the trick for certs is just to know nothing and teach yourself how to pass via all the help aids. :) On Tue, 15 Feb 2005 09:54:58 -0500, Michael T. Tangorre [EMAIL PROTECTED] wrote: MS certifications can be a joke as well. I know MANY people who study the tests, buy the books, take the tests, and a week later remember nothing because they learned nothing, they only remembered for a short while. Obviosuly the same holds true for MM certs. The point is that they do carry some weight IMO; they help show that people have some clue into the language and its' syntax; it shows they at least have an interest in the language... doesn't that weigh more when comparing two people of seemingly equal skill sets and experience where one has a cert and the other does not? ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194751 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Using Application.cfc has decreased performance
From: Micha Schopman [mailto:[EMAIL PROTECTED] And questions are like What is or does cfoutput ?: A: A car B: A flower C: A type of applepie D: A bottle E: Displays output that can contain the results of processing ColdFusion variables and functions. Can loop over the results of a database query. What a gross_over_simplification!! However that is not surprising given the fact that you did not take the exam. Perhaps if you did, you would realize the exam is actually quite challenging because it does not have questions like the one you posted above. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194752 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Using Application.cfc has decreased performance
From: Aaron Rouse [mailto:[EMAIL PROTECTED] I know people who have done that for the MCSE, ever seen someone who has done it for the Microsoft DBA one? I know a few MSSQL people who study their butts off for that one and still failed it. Just curious if people have managed to pass it without knowing anything prior to picking up study guides. Maybe the trick for certs is just to know nothing and teach yourself how to pass via all the help aids. :) I can tell you from personal experience that you might think you know a lot about SQL Server until you take one of the practice exams and you start seing quations about stored procedures you never even heard of, or read a question where all the answers are correct but 1 is the most correct. The MSCDBA exams are very tough. I am sure it helps to have hands on experience but I guess you could make a case for learning the MS way from the getgo and not have to break bad habits or less efficient ways of doing things. Mike ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194754 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Using Application.cfc has decreased performance
I believe some of the oracle exams are that way as well. I have only looked into one of them, so could not really say one way or the other. On Tue, 15 Feb 2005 10:03:45 -0500, Michael T. Tangorre [EMAIL PROTECTED] wrote: I can tell you from personal experience that you might think you know a lot about SQL Server until you take one of the practice exams and you start seing quations about stored procedures you never even heard of, or read a question where all the answers are correct but 1 is the most correct. The MSCDBA exams are very tough. I am sure it helps to have hands on experience but I guess you could make a case for learning the MS way from the getgo and not have to break bad habits or less efficient ways of doing things. Mike ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194755 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Using Application.cfc has decreased performance
Like I said, Microsoft programming exams, MCSE isn't one of them. Try the developers exams (MCAD/MCSD) once, and you know you'll have to study your butts of. I strongly doubt you can handle these exams by theory only, the difficulty of these exams is high. Micha Schopman Software Engineer Modern Media, Databankweg 12 M, 3821 AL Amersfoort Tel 033-4535377, Fax 033-4535388 KvK Amersfoort 39081679, Rabo 39.48.05.380 - Modern Media, Making You Interact Smarter. Onze oplossingen verbeteren de interactie met uw doelgroep. Wilt u meer omzet, lagere kosten of een beter service niveau? Voor meer informatie zie www.modernmedia.nl - ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194758 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Using Application.cfc has decreased performance
I did the exams for version 5, so I know what I am talking about :) Micha Schopman Software Engineer Modern Media, Databankweg 12 M, 3821 AL Amersfoort Tel 033-4535377, Fax 033-4535388 KvK Amersfoort 39081679, Rabo 39.48.05.380 - Modern Media, Making You Interact Smarter. Onze oplossingen verbeteren de interactie met uw doelgroep. Wilt u meer omzet, lagere kosten of een beter service niveau? Voor meer informatie zie www.modernmedia.nl - -Original Message- From: Michael T. Tangorre [mailto:[EMAIL PROTECTED] Sent: dinsdag 15 februari 2005 16:01 To: CF-Talk Subject: RE: Using Application.cfc has decreased performance From: Micha Schopman [mailto:[EMAIL PROTECTED] And questions are like What is or does cfoutput ?: A: A car B: A flower C: A type of applepie D: A bottle E: Displays output that can contain the results of processing ColdFusion variables and functions. Can loop over the results of a database query. What a gross_over_simplification!! However that is not surprising given the fact that you did not take the exam. Perhaps if you did, you would realize the exam is actually quite challenging because it does not have questions like the one you posted above. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194759 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Using Application.cfc has decreased performance
This thread turned into an anti-cert thread. Are people aware that the Macromedia Certification is NOT the same as the certification instructors get? As a former instructor (simply didn't have time for it anymore), I can say that Macromedia really, really does work hard to make sure their instructors are up to snuff. I've never had my ego slapped down a notch as much as when I did my testing to become an instructor. Now that being said - every group will have bad apples. Did you contact Macromedia Training to let them know? And do remember that even the best coders will do stupid things. Not that I ever do. Aheam. On Tue, 15 Feb 2005 15:11:23 +0100, Micha Schopman [EMAIL PROTECTED] wrote: Yep, And the most astonishing part is, those projects have been created by a Macromedia Certified Trainer. I have never seen so many bad and unstable code. I don't understand such a person is allowed to train others. Micha Schopman Software Engineer Modern Media, Databankweg 12 M, 3821 AL Amersfoort Tel 033-4535377, Fax 033-4535388 KvK Amersfoort 39081679, Rabo 39.48.05.380 === Raymond Camden, Director of Development for Mindseye, Inc (www.mindseye.com) Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia) Email: [EMAIL PROTECTED] Blog : ray.camdenfamily.com Yahoo IM : cfjedimaster My ally is the Force, and a powerful ally it is. - Yoda ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194762 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Using Application.cfc has decreased performance
I think your ego needs to be slapped again. :) On Tue, 15 Feb 2005 09:25:37 -0600, Raymond Camden [EMAIL PROTECTED] wrote: And do remember that even the best coders will do stupid things. Not that I ever do. Aheam. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194765 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Using Application.cfc has decreased performance
Ofcourse, everyone is aware people make mistakes. But you have to see the code to know what I mean. Here is a sample, and don't say I am overreacting on this ;) http://www.mschopman.demon.nl/horror.txt Micha Schopman Software Engineer Modern Media, Databankweg 12 M, 3821 AL Amersfoort Tel 033-4535377, Fax 033-4535388 KvK Amersfoort 39081679, Rabo 39.48.05.380 - Modern Media, Making You Interact Smarter. Onze oplossingen verbeteren de interactie met uw doelgroep. Wilt u meer omzet, lagere kosten of een beter service niveau? Voor meer informatie zie www.modernmedia.nl - -Original Message- From: Raymond Camden [mailto:[EMAIL PROTECTED] Sent: dinsdag 15 februari 2005 16:26 To: CF-Talk Subject: Re: Using Application.cfc has decreased performance This thread turned into an anti-cert thread. Are people aware that the Macromedia Certification is NOT the same as the certification instructors get? As a former instructor (simply didn't have time for it anymore), I can say that Macromedia really, really does work hard to make sure their instructors are up to snuff. I've never had my ego slapped down a notch as much as when I did my testing to become an instructor. Now that being said - every group will have bad apples. Did you contact Macromedia Training to let them know? And do remember that even the best coders will do stupid things. Not that I ever do. Aheam. On Tue, 15 Feb 2005 15:11:23 +0100, Micha Schopman [EMAIL PROTECTED] wrote: Yep, And the most astonishing part is, those projects have been created by a Macromedia Certified Trainer. I have never seen so many bad and unstable code. I don't understand such a person is allowed to train others. Micha Schopman Software Engineer Modern Media, Databankweg 12 M, 3821 AL Amersfoort Tel 033-4535377, Fax 033-4535388 KvK Amersfoort 39081679, Rabo 39.48.05.380 === Raymond Camden, Director of Development for Mindseye, Inc (www.mindseye.com) Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia) Email: [EMAIL PROTECTED] Blog : ray.camdenfamily.com Yahoo IM : cfjedimaster My ally is the Force, and a powerful ally it is. - Yoda ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194766 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Using Application.cfc has decreased performance
If i can't even spell Ahem, then probably so. ;) -ray On Tue, 15 Feb 2005 09:28:54 -0600, Aaron Rouse [EMAIL PROTECTED] wrote: I think your ego needs to be slapped again. :) On Tue, 15 Feb 2005 09:25:37 -0600, Raymond Camden [EMAIL PROTECTED] wrote: And do remember that even the best coders will do stupid things. Not that I ever do. Aheam. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194767 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Using Application.cfc has decreased performance
Just curious if people have managed to pass it without knowing anything prior to picking up study guides. Maybe the trick for certs is just to know nothing and teach yourself how to pass via all the help aids. :) I'm sure some people have done this. I remember reading about someone who took bar exams without going to law school. If you can do that, you can certainly pass the CF certification without having any actual experience with CF or even HTML. I think that CF certification is valuable within the context of comparing applicants' skills as one additional factor to look at. By itself, it doesn't mean a whole lot, but in conjunction with other things it can help differentiate between applicants. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194785 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Using Application.cfc has decreased performance
Dave Watts wrote: Just curious if people have managed to pass it without knowing anything prior to picking up study guides. Maybe the trick for certs is just to know nothing and teach yourself how to pass via all the help aids. :) I'm sure some people have done this. I remember reading about someone who took bar exams without going to law school. My Father In law took the bar exams in Kansas on dare from a buddy of his who was in law school. He passed the first time with flying colors, and has been an attorney for the largest corporation in the world, amongst other things, for 30 years. The funny thing is, he has problems with MS Word mail merge! ;-) -- Alex Sherwood ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194789 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Using Application.cfc has decreased performance
On Thu, 10 Feb 2005 15:34:44 +0100, Micha Schopman [EMAIL PROTECTED] wrote: It does, on each request Application.cfm - onRequestStart - onRequest - index.cfm If you're using onRequest, there is no point in using onRequestStart as well. Of course there's a minor performance overhead - CF is executing a method that includes your page instead of executing your page directly. In reality - real-world sites, with real-world load - that will make no noticeable difference and the benefits of being able to manage start / end of application and session make it worthwhile. -- Sean A Corfield -- http://www.corfield.org/ Team Fusebox -- http://www.fusebox.org/ Breeze Me! -- http://www.corfield.org/breezeme Got Gmail? -- I have 49, yes 49, invites to give away! If you're not annoying somebody, you're not really alive. -- Margaret Atwood ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194193 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Using Application.cfc has decreased performance
Does CF cache the instantiated component somewhere, or does it have to re-instantiate it for every request? This could be part of the performance drop i.e.: Run Application.cfm Vs Create component from Application.cfc - invoke onRequest() method -Original Message- From: Sean Corfield [mailto:[EMAIL PROTECTED] Sent: Friday, 11 February 2005 4:01 To: CF-Talk Subject: Re: Using Application.cfc has decreased performance On Thu, 10 Feb 2005 15:34:44 +0100, Micha Schopman [EMAIL PROTECTED] wrote: It does, on each request Application.cfm - onRequestStart - onRequest - index.cfm If you're using onRequest, there is no point in using onRequestStart as well. Of course there's a minor performance overhead - CF is executing a method that includes your page instead of executing your page directly. In reality - real-world sites, with real-world load - that will make no noticeable difference and the benefits of being able to manage start / end of application and session make it worthwhile. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194194 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Using Application.cfc has decreased performance
On Fri, 11 Feb 2005 16:12:42 +0800, James Holmes [EMAIL PROTECTED] wrote: Does CF cache the instantiated component somewhere, or does it have to re-instantiate it for every request? The CFC is instantiated for each request (but the last instantiated CFC for a particular session / application is the one that runs the onSessionEnd / onApplicationEnd event). -- Sean A Corfield -- http://www.corfield.org/ Team Fusebox -- http://www.fusebox.org/ Breeze Me! -- http://www.corfield.org/breezeme Got Gmail? -- I have 49, yes 49, invites to give away! If you're not annoying somebody, you're not really alive. -- Margaret Atwood ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194195 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Using Application.cfc has decreased performance
That's what I thought. I agree, by the way - I'll trade a few ms for an onSessionEnd eny day - this feature allows us to solve so many problems with tracking sessions (without resorting to the undocumented sesiontracker objects). -Original Message- From: Sean Corfield [mailto:[EMAIL PROTECTED] Sent: Friday, 11 February 2005 4:31 To: CF-Talk Subject: Re: Using Application.cfc has decreased performance On Fri, 11 Feb 2005 16:12:42 +0800, James Holmes [EMAIL PROTECTED] wrote: Does CF cache the instantiated component somewhere, or does it have to re-instantiate it for every request? The CFC is instantiated for each request (but the last instantiated CFC for a particular session / application is the one that runs the onSessionEnd / onApplicationEnd event). ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194196 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Using Application.cfc has decreased performance
Ah ok, haven't played with this goodie yet :) One thing people need to keep in mind, is that effectively there will be no real degrade of performance. You only move logic for checking session state (and people have been logged in or not) from the template normally called after application.cfm, to application.cfc. I doubt there will be any degradation of performance, iif you already have those session checks in your current application.cfm file. Micha Schopman Software Engineer Modern Media, Databankweg 12 M, 3821 AL Amersfoort Tel 033-4535377, Fax 033-4535388 KvK Amersfoort 39081679, Rabo 39.48.05.380 - Modern Media, Making You Interact Smarter. Onze oplossingen verbeteren de interactie met uw doelgroep. Wilt u meer omzet, lagere kosten of een beter service niveau? Voor meer informatie zie www.modernmedia.nl - -Original Message- From: Sean Corfield [mailto:[EMAIL PROTECTED] Sent: vrijdag 11 februari 2005 9:01 To: CF-Talk Subject: Re: Using Application.cfc has decreased performance On Thu, 10 Feb 2005 15:34:44 +0100, Micha Schopman [EMAIL PROTECTED] wrote: It does, on each request Application.cfm - onRequestStart - onRequest - index.cfm If you're using onRequest, there is no point in using onRequestStart as well. Of course there's a minor performance overhead - CF is executing a method that includes your page instead of executing your page directly. In reality - real-world sites, with real-world load - that will make no noticeable difference and the benefits of being able to manage start / end of application and session make it worthwhile. -- Sean A Corfield -- http://www.corfield.org/ Team Fusebox -- http://www.fusebox.org/ Breeze Me! -- http://www.corfield.org/breezeme Got Gmail? -- I have 49, yes 49, invites to give away! If you're not annoying somebody, you're not really alive. -- Margaret Atwood ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194197 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Using Application.cfc has decreased performance
On Fri, 11 Feb 2005 09:46:46 +0100, Micha Schopman [EMAIL PROTECTED] wrote: One thing people need to keep in mind, is that effectively there will be no real degrade of performance. You only move logic for checking session state (and people have been logged in or not) from the template normally called after application.cfm, to application.cfc. Just to clarify what I think Micha means... If you have code in Application.cfm that says: cfapplication name=someapp .../ cfif not structKeyExists(application,'init') cflock scope=application type=exclusive timeout=10 do a bunch of application init ... /cflock /cfif cfif not structKeyExists(session,'user') cflock scope=application type=exclusive timeout=10 do a bunch of session init ... /cflock /cfif a bunch of variables / request setup ... When you change this to Application.cfc you'll end up with: cfcomponent cfset this.name = someapp cffunction name=onApplicationStart do a bunch of application init ... /cffunction cffunction name=onSessionStart do a bunch of session init ... /cffunction cffunction name=onRequest cfargument name=targetPage a bunch of variables / request setup ... cfinclude template=#targetPage# /cffunction /cfcomponent Note several things: 1. you no longer need to lock 2. you no longer need to test for app / session init on every request - CF does it automatically 3. only onRequest is called on every request - onApplicationStart is called just once per application and onSessionStart is called just once per session. So overall you gain performance from not having tests for app / session but you lose performance for a function call and an include. I think it's a small price to pay for the benefits of cleaner initialization. -- Sean A Corfield -- http://www.corfield.org/ Team Fusebox -- http://www.fusebox.org/ Breeze Me! -- http://www.corfield.org/breezeme Got Gmail? -- I have 49, yes 49, invites to give away! If you're not annoying somebody, you're not really alive. -- Margaret Atwood ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194353 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Using Application.cfc has decreased performance
Hi All, I have replaced Application.cfm in an old application of mine with Application.cfc. The events set there are OnRequestStart (checking to see if user has logged in and initializes variables in the request scope) and onRequest (that cfincludes a page according to a URL parameter). I noticed a performance delay on the new version of the application. some pages need almost twice the time to load than they did before. Has anyone observed anything similar? Thanks in advance, Stavros ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194031 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Using Application.cfc has decreased performance
I sometimes experienced CFC's with practically the exact amount of code, being slower than cfmodule calls (which should be slower). It is hard to say what is causing such behavior, and often depends on the type of constructions. :) Micha Schopman Software Engineer Modern Media, Databankweg 12 M, 3821 AL Amersfoort Tel 033-4535377, Fax 033-4535388 KvK Amersfoort 39081679, Rabo 39.48.05.380 - Modern Media, Making You Interact Smarter. Onze oplossingen verbeteren de interactie met uw doelgroep. Wilt u meer omzet, lagere kosten of een beter service niveau? Voor meer informatie zie www.modernmedia.nl - -Original Message- From: Stavros Tekes [mailto:[EMAIL PROTECTED] Sent: donderdag 10 februari 2005 13:29 To: CF-Talk Subject: Using Application.cfc has decreased performance Hi All, I have replaced Application.cfm in an old application of mine with Application.cfc. The events set there are OnRequestStart (checking to see if user has logged in and initializes variables in the request scope) and onRequest (that cfincludes a page according to a URL parameter). I noticed a performance delay on the new version of the application. some pages need almost twice the time to load than they did before. Has anyone observed anything similar? Thanks in advance, Stavros ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194045 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Using Application.cfc has decreased performance
Followup, I don't find it odd that performance has degraded. Remember that application.cfc get's called on each request made, and on each request it has to evaluate both functions. So where it used to call Application.cfm - index.cfm It does, on each request Application.cfm - onRequestStart - onRequest - index.cfm Micha Schopman Software Engineer Modern Media, Databankweg 12 M, 3821 AL Amersfoort Tel 033-4535377, Fax 033-4535388 KvK Amersfoort 39081679, Rabo 39.48.05.380 - Modern Media, Making You Interact Smarter. Onze oplossingen verbeteren de interactie met uw doelgroep. Wilt u meer omzet, lagere kosten of een beter service niveau? Voor meer informatie zie www.modernmedia.nl - -Original Message- From: Micha Schopman [mailto:[EMAIL PROTECTED] Sent: donderdag 10 februari 2005 15:13 To: CF-Talk Subject: RE: Using Application.cfc has decreased performance I sometimes experienced CFC's with practically the exact amount of code, being slower than cfmodule calls (which should be slower). It is hard to say what is causing such behavior, and often depends on the type of constructions. :) Micha Schopman Software Engineer Modern Media, Databankweg 12 M, 3821 AL Amersfoort Tel 033-4535377, Fax 033-4535388 KvK Amersfoort 39081679, Rabo 39.48.05.380 - Modern Media, Making You Interact Smarter. Onze oplossingen verbeteren de interactie met uw doelgroep. Wilt u meer omzet, lagere kosten of een beter service niveau? Voor meer informatie zie www.modernmedia.nl - -Original Message- From: Stavros Tekes [mailto:[EMAIL PROTECTED] Sent: donderdag 10 februari 2005 13:29 To: CF-Talk Subject: Using Application.cfc has decreased performance Hi All, I have replaced Application.cfm in an old application of mine with Application.cfc. The events set there are OnRequestStart (checking to see if user has logged in and initializes variables in the request scope) and onRequest (that cfincludes a page according to a URL parameter). I noticed a performance delay on the new version of the application. some pages need almost twice the time to load than they did before. Has anyone observed anything similar? Thanks in advance, Stavros ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194051 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Using Application.cfc has decreased performance
On Thu, 10 Feb 2005 08:28:36 -0400, Stavros Tekes [EMAIL PROTECTED] wrote: Hi All, I have replaced Application.cfm in an old application of mine with Application.cfc. The events set there are OnRequestStart (checking to see if user has logged in and initializes variables in the request scope) and onRequest (that cfincludes a page according to a URL parameter). I noticed a performance delay on the new version of the application. some pages need almost twice the time to load than they did before. Has anyone observed anything similar? Not sure if this is your problem, but do you have debugging turned on with the report execution times option selected? CFCs with that option turned on in general are dog slow because each method call has to register itself with the debugging service. CFMs don't have this issue. If so, try turning that option off and see what happens. We have a very CFC-heavy application that is noticeably sluggish with the option on, but very responsive once it's off. Regards, Dave. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194061 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Using Application.cfc has decreased performance
I do not have either debugging enabled or report execution times. Both are off but the delay is there. Furthermore, on the followup that Micha did, I have the impression that on MX7, one can have either Application.cfc or Application.cfm. If both are present only Application.cfc is used. Isnt that right? I tried a small test and this is the conclusion I came at. If this is the case, then this delay is something unexplained and although the events logic is cool and useful, I will probably stick to the good old Application.cfm. Stavros Followup, I don't find it odd that performance has degraded. Remember that application.cfc get's called on each request made, and on each request it has to evaluate both functions. So where it used to call Application.cfm - index.cfm It does, on each request Application.cfm - onRequestStart - onRequest - index.cfm Micha Schopman Software Engineer Modern Media, Databankweg 12 M, 3821 AL Amersfoort Tel 033-4535377, Fax 033-4535388 KvK Amersfoort 39081679, Rabo 39.48.05.380 - Modern Media, Making You Interact Smarter. Onze oplossingen verbeteren de interactie met uw doelgroep. Wilt u meer omzet, lagere kosten of een beter service niveau? Voor meer informatie zie www.modernmedia.nl - ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194192 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54