Re: CFCASE/CFIF
Yes, I did that. Should have been pasted in the previous message at the bottom. Jake - Original Message - From: "Hayes, David" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Monday, September 25, 2000 10:35 AM Subject: RE: CFCASE/CFIF > Turn on your debugging and look at the execution times for each template. > > -Original Message- > From: Jake Hileman [mailto:[EMAIL PROTECTED]] > Sent: Monday, September 25, 2000 12:22 AM > To: CF-Talk > Subject: Re: CFCASE/CFIF > > > Okay also.. about my MS question. > > I have a form with about 25 check boxes.. so the processing of checking if > they are checked, etc.. makes my one template run at about 600-800ms.. while > every other template on the site runs at around 200ms or less. > > The db time is 0-20ms.. so it's very fast. > > I am doing the following: > > test.cfm?action=insert > action can be, insert, update, delete. > > action is a cfswitch and each switch loads up 3 include files.. about 40k in > total include text with about 2-3 quick db calls. the 3 include files > include all the large code to check the checkboxes out, etc. and a header > and footer. > > this takes upwards of 800ms... I've never written anything so far that took > over 400ms or so on this machine. > > is my coding bad? is 800ms slow? > > thanks, > > jake > > -- -- > -- > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > To Unsubscribe visit > http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or > send a message to [EMAIL PROTECTED] with 'unsubscribe' in > the body. > -- > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. > -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: CFCASE/CFIF
Turn on your debugging and look at the execution times for each template. -Original Message- From: Jake Hileman [mailto:[EMAIL PROTECTED]] Sent: Monday, September 25, 2000 12:22 AM To: CF-Talk Subject: Re: CFCASE/CFIF Okay also.. about my MS question. I have a form with about 25 check boxes.. so the processing of checking if they are checked, etc.. makes my one template run at about 600-800ms.. while every other template on the site runs at around 200ms or less. The db time is 0-20ms.. so it's very fast. I am doing the following: test.cfm?action=insert action can be, insert, update, delete. action is a cfswitch and each switch loads up 3 include files.. about 40k in total include text with about 2-3 quick db calls. the 3 include files include all the large code to check the checkboxes out, etc. and a header and footer. this takes upwards of 800ms... I've never written anything so far that took over 400ms or so on this machine. is my coding bad? is 800ms slow? thanks, jake -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: CFCASE/CFIF
Okay also.. about my MS question. I have a form with about 25 check boxes.. so the processing of checking if they are checked, etc.. makes my one template run at about 600-800ms.. while every other template on the site runs at around 200ms or less. The db time is 0-20ms.. so it's very fast. I am doing the following: test.cfm?action=insert action can be, insert, update, delete. action is a cfswitch and each switch loads up 3 include files.. about 40k in total include text with about 2-3 quick db calls. the 3 include files include all the large code to check the checkboxes out, etc. and a header and footer. this takes upwards of 800ms... I've never written anything so far that took over 400ms or so on this machine. is my coding bad? is 800ms slow? thanks, jake -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: CFCASE/CFIF
- Original Message - From: "Peter Tilbrook" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Monday, September 25, 2000 11:10 AM Subject: RE: CFCASE/CFIF > Depending on how it is used CFCASE is usually faster than CFIF (or nested > CFIF's). > > If CFCASE will do what you want it would be the better method. > -- > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: CFCASE/CFIF
If you have more than 2 choices then SWITCH/CASE is faster. The down side to SWTICH/CASE is CASE has to be constant it cannot be a varaiable. >>It can indeed be a variable however you need to know what you are checking for. If all CFCASES fail then you can use the CFDEFAULTCASE to perform default processing or error correction. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: CFCASE/CFIF
Depending on how it is used CFCASE is usually faster than CFIF (or nested CFIF's). If CFCASE will do what you want it would be the better method. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: CFCASE/CFIF
If you have more than 2 choices then SWITCH/CASE is faster. The down side to SWTICH/CASE is CASE has to be constant it cannot be a varaiable. At 11:24 PM 9/24/00 -0400, you wrote: >Is CFCASE faster then CFIF? > >Also, execution time wise.. I'm hitting upwards of 500ms or so when I >usually only hit about 100-200ms.. but I'm setting about 100CFparams in this >so 500 I guess is expected. > >Is 500ms slow? This is my dev machine.. p2 300, 256mb ram, win2k, mysql >3.23.24. > >thanks! > >jake --more below. >422 milliseconds > 282 ms D\ADDPLAN.CFM > 93 ms D\ADDPLANCASE.CFM > 16 ms D\FOOTER.INC > 0 ms D\HEADER.INC > 31 ms STARTUP, PARSING, & SHUTDOWN > > > >-- >Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ >To Unsubscribe visit >http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or >send a message to [EMAIL PROTECTED] with 'unsubscribe' in >the body. end * Every child is an artist. The problem is how to remain an artist once he grows up. -Pablo Picasso, painter and sculptor (1881-1973) * Michael "Maxx" Porter Vice President Paradox Studios Inc. 847-869-3673 mailto:[EMAIL PROTECTED] -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.