diff options
author | mguetlein <martin.guetlein@gmail.com> | 2012-06-15 13:58:13 +0200 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2012-06-15 13:58:13 +0200 |
commit | f7350549c9e861ca8cf91ca74696187e8ca7355d (patch) | |
tree | cb5475724d6a91e67ff279bbcace150080028283 | |
parent | 8adc2faf1cea832e91e08577e25831fd656120b4 (diff) |
dataset add() speedup
-rw-r--r-- | fminer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |