Browse files

Update changes, version v2.6.1

  • Loading branch information...
1 parent b47e402 commit f0dd2516d827c6853d2141f699ecdfe8d01d49e6 @mperham mperham committed Jan 25, 2013
Showing with 12 additions and 3 deletions.
  1. +1 −0 Gemfile
  2. +9 −1 History.md
  3. +1 −1 lib/dalli/ring.rb
  4. +1 −1 lib/dalli/version.rb
View
1 Gemfile
@@ -4,6 +4,7 @@ gemspec
gem 'rake'
gem 'kgio', :platform => :mri
+gem 'RubyInline', :platform => :mri
group :test do
gem 'simplecov'
View
10 History.md
@@ -1,9 +1,17 @@
Dalli Changelog
=====================
-HEAD
+2.6.1
=======
+- Add optional native C binary search for ring, add:
+
+gem 'RubyInline'
+
+ to your Gemfile to get a 10% speedup when using many servers.
+ You will see no improvement if you are only using one server.
+
+- More get_multi performance optimization [xaop, #315]
- Add lambda support for cache namespaces [joshwlewis, #311]
2.6.0
View
2 lib/dalli/ring.rb
@@ -103,7 +103,7 @@ def entry_count_for(server, total_servers, total_weight)
}
EOM
end
- rescue Exception => e
+ rescue
@rafaelfranca
rafaelfranca added a line comment Jan 25, 2013

This change broke rails since it doesn't add RubyInline

Hey @mperham, I believe this should rescue at least LoadError from the inline require. Rails build broke due to the missing require.

@mperham
Collaborator
mperham added a line comment Jan 25, 2013

Curses, I thought LoadError was a StandardError.

@mperham
Collaborator
mperham added a line comment Jan 25, 2013

2.6.2 is out.

@rafaelfranca
rafaelfranca added a line comment Jan 25, 2013

Thank you

Thank you @mperham.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
# Find the closest index in the Ring with value <= the given value
def binary_search(ary, value)
upper = ary.size - 1
View
2 lib/dalli/version.rb
@@ -1,3 +1,3 @@
module Dalli
- VERSION = '2.6.0'
+ VERSION = '2.6.1'
end

0 comments on commit f0dd251

Please sign in to comment.