The only time when the processing time goes much over 10ms is when the list
of email headers is being refreshed, because they have to be downloaded from
the mail server. Other than that, all common functions and templates are
called from CFC's stored in the application scope, and user settings and
functions are stored in the session scope. This means that there is almost
no file access anywhere in the app, with the exception of loading user
settings on login.
If you keep every memory resident, then yes, you can get 10ms load times.
--
Michael Wolfe
[EMAIL PROTECTED]
_____
From: Joe Eugene [mailto:[EMAIL PROTECTED]
Sent: Monday, February 02, 2004 9:28 PM
To: CF-Talk
Subject: RE: CFC or Struct in session
>As far as performance goes, I'm seeing <10ms load times for most of my
Did you mean less than 10 milli seconds for page loads... that seems
odd to me... You cant even validate 12 form fields under 10 ms unless
you are doing some magic.
Joe Eugene
-----Original Message-----
From: Michael Wolfe [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 03, 2004 12:01 AM
To: CF-Talk
Subject: RE: CFC or Struct in session
Here's an example...
I have an application where I store user settings in a CFC. Also, I have a
couple of standard functions in the CFC (login, logout, etc.).
Yes, I know that I could use a session-level structure to store the user
settings, but it so much simpler to invoke session.userCFC, pass in the
settings, and then invoke the login() function. The ease of use more than
makes up for the extra few bytes of memory being used.
As far as performance goes, I'm seeing <10ms load times for most of my
pages, and this includes parsing through several queries (most of which
are
also stored in the session).
--
Michael Wolfe
[EMAIL PROTECTED]
_____
From: Michael Dinowitz [mailto:[EMAIL PROTECTED]
Sent: Monday, February 02, 2004 7:15 PM
To: CF-Talk
Subject: CFC or Struct in session
I've been reading in a number of places where people place a reference to
a
CFC in a users session variable. This has always seemed strange to me. Why
not cache the CFC for the application and only store the users data in a
session struct. Is there something I'm missing about saving an entire CFC
reference per user? Doesn't it have a higher overhead? Is there a
performance savings?
I'm going to bash on this tomorrow and find out myself, but if someone can
post their reasoning, I'd appreciate it.
Thanks
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

