From f7350549c9e861ca8cf91ca74696187e8ca7355d Mon Sep 17 00:00:00 2001 From: mguetlein Date: Fri, 15 Jun 2012 13:58:13 +0200 Subject: dataset add() speedup --- fminer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fminer.rb b/fminer.rb index 762b3bd..bd21a7e 100644 --- a/fminer.rb +++ b/fminer.rb @@ -136,7 +136,7 @@ post '/fminer/:method/match?' do f_dataset.features.each do |f,m| smarts_pattern.init(m[OT.smarts]) c_dataset.compounds.each do |c| - res_dataset.add(c,f,1) if smarts_pattern.match(obmols[c]) + res_dataset.add(c,f,1,true) if smarts_pattern.match(obmols[c]) end count += 1 task.progress step_width*count if count%10==0 -- cgit v1.2.3