The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Wee performance increase

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Michael Neumann

Posts: 66
Nickname: backflash
Registered: May, 2003

Michael Neumann is fallen in Love with Ruby
Wee performance increase Posted: Oct 27, 2004 9:38 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Michael Neumann.
Original Post: Wee performance increase
Feed Title: Mike's Weblog
Feed URL: http://www.ntecs.de/blog-old/index.rss?cat=ruby&count=7
Feed Description: Blogging about Ruby and other interesting stuff.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Michael Neumann
Latest Posts From Mike's Weblog

Advertisement
Now it can handle 10 complete requests (which are actually two, one is a redirect) per second more, simply by changing the line
  val.dup rescue val

into:

  case val
  when Fixnum, nil, true, false
    val
  else
    val.dup rescue val
  end

The second is up to 14 times faster for objects that can't be cloned (Fixnum, nil, true, false). This results in an increase from 97 req/sec to 160 req/sec in the action-phase of Wee (for the example described in WeeFramework). Next, I will do component render caching (for leaf components).

Read: Wee performance increase

Topic: Greetings from Munich - EuRuKo 2004 is starting right now Previous Topic   Next Topic Topic: Dependancy Injection Explained

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use