Hi,
I've downloaded the new 3.1.6 and I was going to replace our 3.1.5
version when I encountered a big performance drop with htsearch. The
database was 3.1.5, and I had the two htsearch version
together. Difference was systematic (3.1.6 more than 10 time
slower). This reminded me of the "backlink_factor" effect. So I looked
something in the code were the document database would be called for each
match. I think I find where.
In display.cc there is this test:
// New check added on whether or not we need to check date ranges - MG
if (date_factor != 0.0 || backlink_factor != 0.0 || typ != SortByScore
|| timet_startdate > 0 || enddate.tm_year < endoftime->tm_year)
If there is no date specified, the code inside should not be executed, but
it is! I changed the test to this:
// New check added on whether or not we need to check date ranges - MG
if (date_factor != 0.0 || backlink_factor != 0.0 || typ != SortByScore
|| timet_startdate > 0 || timet_enddate < eternity)
according to the "no date given" case and it works. Speed is as it was
with 3.1.5.
So I do not fully understand this "date" stuff and in our case I don't
thing we will use it.
But if indeed the test is wrong, it should be corrected (maybe not with
what I did).
I had also to change the Makefile.config.in to make it compile on our old
SGI plateform (SGI Irix 6.3 with the SGI Compiler):
265# diff -c Makefile.config.in.ORIG Makefile.config.in
*** Makefile.config.in.ORIG Thu Jan 31 18:47:14 2002
--- Makefile.config.in Mon Feb 4 15:42:49 2002
***************
*** 23,29 ****
PDF_PARSER= @PDF_PARSER@
SENDMAIL= @SENDMAIL@
! DEFINES= -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\"
LIBDIRS= -L../htlib -L../htcommon -L../db/dist -L/usr/lib
INCS= -I$(top_srcdir)/htlib -I$(top_srcdir)/htcommon \
-I../db/dist -I../include
--- 23,29 ----
PDF_PARSER= @PDF_PARSER@
SENDMAIL= @SENDMAIL@
! DEFINES= @DEFS@ -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\"
LIBDIRS= -L../htlib -L../htcommon -L../db/dist -L/usr/lib
INCS= -I$(top_srcdir)/htlib -I$(top_srcdir)/htcommon \
-I../db/dist -I../include
Without that, make stop with an error in htlib because it cannot resolve
"alloca". The @DEFS@ just have the HAVE_CONFIG define.
Thanks!
-------
Robert Marchand t�l: 343-6111 poste 5210
DGTIC-SIT e-mail: [EMAIL PROTECTED]
Universit� de Montr�al Montr�al, Canada
_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html