Thursday, July 13

Geek

Ick

Not to be using CherryPy for static files.

Well, they do tell you that in the documentation. It works just fine, and makes things a lot easier to set up. But it imposes the same level of overhead for static files as it does for dynamic pages.

6ms of overhead when a page takes 10 to 30ms to generate isn't a big problem.

6ms of overhead when a page takes 2ms to fetch from the cache is more of a problem, but it's better than 160ms of overhead.

6ms of overhead for a static file is... not so good.

So now I get to play with mod_rewrite. Because I don't have a live crocodile to shove down my pants.

Update: Oh look, mod_proxy isn't enabled. So I have to recompile Apache before I can use mod_rewrite with [P] tags. I'll leave it for another day, I think.

Posted by: Pixy Misa at 10:15 PM | Comments (4) | Add Comment | Trackbacks (Suck)
Post contains 148 words, total size 1 kb.

1

I could umm maybe could ship you an alligator, there's several within an hour drive or so.
Or perhaps just some M&M's.

M&M's would definitely make customs happier.


Posted by: phin at Saturday, July 15 2006 09:26 PM (9Vcb6)

2 Customs is generally persnickety about live animals... but would shoving hands full of M&Ms down your pants really produce the same stimulative effect as a live crocodile?

Posted by: HC at Saturday, July 15 2006 10:47 PM (E1/LX)

3 Uh, it's not that I want to shove a live crocodile down my pants.  It's just that the overall effect is roughly equivalent to trying to get mod_rewrite to do something useful.

Posted by: Pixy Misa at Monday, July 17 2006 12:19 PM (GF7ie)

4 Thought crocs were closer to your neck of the woods? I LIKE mod_rewrite. I like doing things like this: RewriteCond %{REQUEST_URI} cgi-bin\/mt-tb.cgi RewriteCond %{HTTP_USER_AGENT} ^Mozilla RewriteCond %{REQUEST_METHOD} ^POST$ RewriteRule ^.*$ - [F,L] (That one little rule blocked a LOT of the spam bots back when...)

Posted by: Kathy K at Tuesday, July 18 2006 01:21 PM (I+TOp)

Hide Comments | Add Comment

Comments are disabled. Post is locked.
46kb generated in CPU 0.0127, elapsed 0.0926 seconds.
56 queries taking 0.0836 seconds, 330 records returned.
Powered by Minx 1.1.6c-pink.