Robert Krawitz
2018-10-28 04:43:10 UTC
It looks like the other fixes I did improved matters considerably for
date search. However, I did find some more inefficiency in the match
code, most notably in not immediately returning on a failed test. The
date comparison code was also needlessly complicated -- all that's
really needed is to check whether the image start date is greater than
the search end date or the image end date is less than the search
start.
I've pushed those changes to the search-performance branch (and merged
that up to the current master).
date search. However, I did find some more inefficiency in the match
code, most notably in not immediately returning on a failed test. The
date comparison code was also needlessly complicated -- all that's
really needed is to check whether the image start date is greater than
the search end date or the image end date is less than the search
start.
I've pushed those changes to the search-performance branch (and merged
that up to the current master).
--
Robert Krawitz <***@alum.mit.edu>
*** MIT Engineers A Proud Tradition http://mitathletics.com ***
Member of the League for Programming Freedom -- http://ProgFree.org
Project lead for Gutenprint -- http://gimp-print.sourceforge.net
"Linux doesn't dictate how I work, I dictate how Linux works."
--Eric Crampton
Robert Krawitz <***@alum.mit.edu>
*** MIT Engineers A Proud Tradition http://mitathletics.com ***
Member of the League for Programming Freedom -- http://ProgFree.org
Project lead for Gutenprint -- http://gimp-print.sourceforge.net
"Linux doesn't dictate how I work, I dictate how Linux works."
--Eric Crampton