<p>Okay, I finally got a chance to look into this. I've refactored the <code>RangeSearch</code> class in <a href="https://github.com/mlpack/mlpack/commit/367357985828e5a007b3b9ccf6c279e983cd7fad" class="commit-link"><tt>3673579</tt></a> so that you can pass different query sets. You can take a look at <code>range_search.hpp</code> to see what I've changed. Can you give this a try and see if this speeds things up?</p>
<p>I'm planning on adapting the API of <code>NeighborSearch</code> and <code>FastMKS</code> too, so seeing if you have any problems here will be helpful for better refactoring. :)</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/pull/388#issuecomment-91055532">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFBP7zKXKVEiXpWqubLN_wjpr-YjGks5n9aPsgaJpZM4DTzb1.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/mlpack/mlpack/pull/388#issuecomment-91055532"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>