From: "ara.t.howard" Date: 2007-12-12T05:56:28+09:00 Subject: Re: CGIAlt 0.0.1 released - an alternative library of 'cgi.rb' On Dec 11, 2007, at 7:10 AM, makoto kuwata wrote: > Hi ara, thank you for trying CGIAlt and CGIExt. > > I have released new version of CGIAlt (0.0.2). > It now supports FastCGI. > Could you try new one? this is what i'm testing: #! /opt/local/bin/ruby require 'rubygems' require 'cgialt' require 'cgialt/fcgi' require 'cgiext' start_time = Time::now memory_session = Hash::new{|h,k| h[k] = {}} FCGI::each_cgi do |cgi| this_time = Time::now # hack to get around ruby session bug session = memory_session[[cgi.cookies ['_session_id']].compact.flatten.first] last_time = session['last_time'] session['last_time'] = this_time content = <<-html
START_TIME @ #{ start_time }
THIS_TIME @ #{ this_time }
LAST_TIME @ #{ last_time }
html cgi.out { content } end and i don't really see a huge improvement - but it's a very simply program that may not take advantage of the performance features. can you suggest a fcgi that should see a significant speedup? a @ http://codeforpeople.com/ -- share your knowledge. it's a way to achieve immortality. h.h. the 14th dalai lama