example, has a weird timing: when tracking tickcount you'll always see
either "zero" or 10ms or greater - nothing in-between. So 10 is often seen
when in fact the page ran just a little slower or faster.
But on a fast machine 10ms isn't a stretch. www.firstnight.org
<http://www.firstnight.org/> runs most pages at less than 50ms and it's
rather busy (I'm managing all user data in the application scope, all
navigation is dynamic and not cached, etc). You can see the tick count
(taken from the first line of application.cfm to the last line of
onrequestend.cfm) at the bottom of every page if you're interested.
Now that site is running on a beefy box (dual Xeon, Win2000) - but it's also
running with about 200 other sites (it's a $20/month shared hosting
account). The box isn't loaded obviously but I could easily see a
dedicated, more powerful box (or the same box running less per page) hitting
sub 10ms times consistently.
Jim Davis
_____
From: Joe Eugene [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 03, 2004 12:28 AM
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]

