Closed Dieterbe closed 9 years ago
since there is no clear winner, and mixed() is the simplest, and correct, i'll just use that
i notice we sometimes check if reg.match()
and sometimes if reg.match() is not None
but this also doesn't seem to make a difference
since pr #39 get_leaves() now returns each leaf multiple times, once for each defined step rule. this function was modified because it was supposedly faster. i've written a test script and could not verify the claims. we benchmark a few different approaches here. in fact, results were too noisy to draw a clear result. one time one approach is faster, then it's the other. probably the manner of measuring is also no good. it's also independent of how many series matched. suggestions on how to improve the script are welcome (perhaps with real series and a real query) but i deliberately used a simple query as to minimize the effect of the regex matching.
below a few test runs, first with explicit printing of results of each method, later i just print the number of results. and finally the script.