From: Yukihiro Matsumoto Date: 2004-10-24T19:36:34+09:00 Subject: Re: CGI::Cookie destroys performance by using SimpleDelegator Hi, In message "Re: CGI::Cookie destroys performance by using SimpleDelegator" on Sun, 24 Oct 2004 07:59:19 +0900, David Heinemeier Hansson writes: |Just like Tempfile, CGI::Cookie uses SimpleDelegator. This causes a |massive performance overhead for mod_ruby/FCGI based sites. I did a |profile on 50 requests through a simple Rails that recorded 26,000 |calls to String.===, which SimpleDelegator was responsible for. | |The fix is exactly the same as what Matz recommended for Tempfile in: |http://groups.google.com/groups? |th=e3a4e68ba042f842&seekm=c3sioe%241qvm%241%40news.cybercity.dk#link14 Point taken. I will merge your fix. By the way, I think your __setobj__ method is not required. Are there any reason to redefine it in cgi.rb? matz.