Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7508339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:39:48+00:00 2026-05-29T22:39:48+00:00

I was excited when I heard that Ruby 1.9.3 was going to halve the

  • 0

I was excited when I heard that Ruby 1.9.3 was going to halve the startup times for apps that have many, many “require” statements (such as Rails apps), compared to 1.9.2. Unfortunately, after the upgrade, the startup times for my Rails 2.3.14 app are as bad as ever. It takes 50 seconds to get to a prompt after executing “script/console”. In that time, it executes 1499 “require” statements.

My question is, how do I get it to start up faster?

I used the following code snippet at the top of my environment.rb file to log all the require statements:

module Kernel
 def require_new(fn)
   puts "#{Time.now.strftime('%Y-%m-%d %H:%M:%S')} #{fn}"
   require_old(fn)
 end
 alias_method :require_old, :require
 alias_method :require, :require_new
end
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T22:39:49+00:00Added an answer on May 29, 2026 at 10:39 pm

    Imho Ruby 1.9.3 is pretty slow out of the box. What could you do to improve the perfomrance is:

    1. Apply the falcon patch if you’re using p0. Here you’ll find how:
      https://gist.github.com/1688857
      including the bonus of tuned up environment variables.

    2. Get the freshly baked out Ruby 1.9.3-p125 http://www.ruby-lang.org/en/news/2012/02/16/ruby-1-9-3-p125-is-released/ I checked it, and my first impression is that the performance is greater than p0.

    3. Upgrade Rails, like user shingara mentioned in the comments.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So like many people, I'm excited about Ruby on Rails. Being a Windows user,
I recently decided to try jQuery 1.4, excited that I would finally have support
I remember the days of Shadowrun that got me excited about hacking. There is
I've heard that pressing the back button will essentially cause the current Activity to
I've been reading about various new additions to c++ recently that i'm really excited
Suppose I have a custom collection class that provides some internal thread synchronization. For
I'm extremely excited about html5's websockets spec but I have a concern. These days
All this weekend I have been trying to setup a Rails 3.0.4 app in
(I'm using Visual C++ 2008) I've always heard that main() is required to return
I have a project that I'm currently working on but it currently only supports

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.