>  I'm curious about the efficiency argument there. I can see your point
> about the webserver not having to look at calls for a js file or css
> file or what have you, but the lookup in the url rewriter is usually a
> pretty straight forward regex with exclusion rules for file extensions
> (css, js, gif, etc). How much overhead do you think that adds? Versus
> onmissingtemplate() which will only run when a CF file is requested,
> but it will have to look for the existence of a file before firing the
> handler. If you are running through a rewriter, you are probably
> sending every request to a single file (index.cfm) or perhaps a couple
> files, so the existence of that file will probably be cached. But if
> you are throwing a bunch of urls at cf that all look like different
> file names "/my-article-1.cfm, /my-article-2.cfm, etc) then it will
> have to look for the existence of every unique url before firing the
> handler.
> 
> Have you done any overhead comparison between the two methods?

I haven't compared them either myself. I generally wouldn't consider
performance on that scale to be a major contributor to my decision
making, although I would think that the overhead of the rewriter would
vary quite a bit based on how graphically rich the site is. CSS and
Javascript may also contribute some, but I kind of expect even
javascript libraries that include a lot of individual scripts are likely
to still not really approach the number of individual requests that are
used for icons and background images. So on a typical page, you may be
looking at there being one request for the base template and then 50
someodd requests for the combined CSS, JS and images. Individually I
would expect them both to have similar amounts of overhead -- although
when you collect up the number of individual requests, I'd expect the
number of requests to the webserver to be a lot higher than those
directly to CF. 



-- 
s. isaac dealey  ^  new epoch
 isn't it time for a change? 
     ph: 781.769.0723

http://onTap.riaforge.org/blog



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314066
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to