SlideShare is now on Android. 15 million presentations at your fingertips.  Get the app

×
  • Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
 

High Performance Ruby - Golden Gate RubyConf 2012

by Programmer at Engine Yard on Sep 14, 2012

  • 13,599 views

 

Statistics

Views

Total Views
13,599
Views on SlideShare
13,541
Embed Views
58

Actions

Likes
17
Downloads
61
Comments
2

9 Embeds 58

https://twitter.com 32
http://staging.slideshare.com 8
http://www.w3schools.com 5
http://faxo.com 4
https://staging-assets.local.twitter.com 3
http://tweetedtimes.com 2
http://nuevospowerpoints.blogspot.com.es 2
http://twitter.com 1
https://si0.twimg.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via SlideShare as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

12 of 2 previous next

  • CharlesNutter Charles Nutter, Programmer at Engine Yard @DanielLucraft I have played with a few ways to optimize those cases. The simplest is to have those hashes be sized as small as possible...a single bucket, for example. If they're modified they'll end up rehashing, and if they're not the linear search is as fast as hashing. Optimizing all the way to the assignment is tricky, but possible, if we can defer creating the hash until the target method body. At that point we can decide if the keyword args need to go into a hash or if they can just be used directly. This is also something we will *need* to do to optimize Ruby 2.0's support for keyword args. 1 year ago
    Are you sure you want to
    Your message goes here
    Processing…
  • danlucraft Daniel Lucraft at Songkick Good talk. Some good satisfying graphs in there, I was so pleased :)

    I was wondering the other day, whether you could optimize away hash option args, like optimize this:

    def initiailze(options)
    @name = options[:name]
    @height = options[:height]
    end

    to run internally as this:

    def initialize(name, height)
    @name, @height = name, height
    end
    1 year ago
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

High Performance Ruby - Golden Gate RubyConf 2012 High Performance Ruby - Golden Gate RubyConf 2012 Presentation Transcript