Commit 2dc7ec1
committed
OPTIMIZATION: 50% speedup of `hdtSearch'.
Changed the end-of-line and flush command `std::endl' to emitting a
regular newline character. This results in a 52% speedup, measured
over the 10M triple SP²B dataset, according to the following command:
./hdtSearch -q "? ? ?" 10M.hdt > out.nt
The detailed statistics are as follows (measured 5 times before and
five times after this commit; the unit is seconds):
- Old: 23.375 23.027 23.216 23.630 23.368 (avg. 23.32sec)
- New: 10.876 11.227 11.077 11.110 11.072 (avg. 11.07sec)1 parent 42da70f commit 2dc7ec1
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
0 commit comments