@@ -180,17 +180,19 @@ void run_NCLS(std::vector<BedInterval>& intervals, std::vector<BedInterval>& que
180180
181181 t1 = high_resolution_clock::now ();
182182 IntervalIterator *it;
183- IntervalIterator *it_alloc;
184- IntervalMap im_buf[1024 ];
183+ // IntervalIterator *it_alloc;
184+ IntervalIterator *it_alloc = interval_iterator_alloc ();
185+ IntervalMap im_buf[50000 ];
185186 found = 0 ;
186187 for (const auto & item : queries) {
187- it_alloc = interval_iterator_alloc ();
188+ // it_alloc = interval_iterator_alloc();
189+ reset_interval_iterator (it_alloc);
188190 it = it_alloc;
189191 while (it){
190- find_intervals (it, item.start , item.end , im, *p_n, sh, *p_nlists, im_buf, 1024 , nhits, &it);
192+ find_intervals (it, item.start , item.end , im, *p_n, sh, *p_nlists, im_buf, 50000 , nhits, &it);
191193 found += *nhits;
192194 }
193- free_interval_iterator (it_alloc);
195+ // free_interval_iterator(it_alloc);
194196 }
195197 std::cerr << uSec (t1) << " ," << found << std::endl;
196198}
@@ -249,10 +251,12 @@ void run_SuperIntervals(std::vector<BedInterval>& intervals, std::vector<BedInte
249251
250252void run_tools (std::vector<BedInterval>& intervals, std::vector<BedInterval>& queries) {
251253
252- run_IITree (intervals, queries);
254+
253255
254256 run_ITree (intervals, queries);
255257
258+ run_IITree (intervals, queries);
259+
256260 run_NCLS (intervals, queries);
257261
258262 // auto itv = SuperIntervals<int, size_t>();
0 commit comments