Skip to content

Commit

Permalink
version bump to 0.3.7 -> optimize native / decrease hmget batch_size …
Browse files Browse the repository at this point in the history
…to 100 & don't process items with less than two appearance
  • Loading branch information
asmuth committed Mar 20, 2012
1 parent 34308c4 commit 285fc81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ext/recommendify.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion recommendify.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 285fc81

Please sign in to comment.