From 285fc81c701f42ddb7c5fa446c2e24fc0c4c95b5 Mon Sep 17 00:00:00 2001 From: Paul Asmuth Date: Tue, 20 Mar 2012 09:47:48 +0100 Subject: [PATCH] version bump to 0.3.7 -> optimize native / decrease hmget batch_size to 100 & don't process items with less than two appearance --- ext/recommendify.c | 6 +++--- recommendify.gemspec | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/recommendify.c b/ext/recommendify.c index 8abc15c..f64e112 100644 --- a/ext/recommendify.c +++ b/ext/recommendify.c @@ -24,7 +24,7 @@ int main(int argc, char **argv){ char* cur_batch; char *iikey; - int batch_size = 200; /* FIXPAUL: make option */ + int batch_size = 100; /* FIXPAUL: make option */ int maxItems = 50; /* FIXPAUL: make option */ struct { @@ -99,8 +99,8 @@ int main(int argc, char **argv){ freeReplyObject(reply); - if(itemCount == 0){ - printf("exit: item count is zero\n"); + if(itemCount < 2){ + printf("exit: item count is zero or one\n"); return 0; } diff --git a/recommendify.gemspec b/recommendify.gemspec index f6b5ee9..bffe726 100644 --- a/recommendify.gemspec +++ b/recommendify.gemspec @@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__) Gem::Specification.new do |s| s.name = "recommendify" - s.version = "0.3.6" + s.version = "0.3.7" s.date = Date.today.to_s s.platform = Gem::Platform::RUBY s.authors = ["Paul Asmuth"]