]> mj.ucw.cz Git - libucw.git/log
libucw.git
21 years agoAdded a set of functions for sliding window mmapping of large files.
Martin Mares [Tue, 23 Sep 2003 16:20:10 +0000 (16:20 +0000)]
Added a set of functions for sliding window mmapping of large files.
Will be used by the indexer to access the card notes array.

21 years agoReplaced enums by #define's in definitions of word, meta and string types.
Martin Mares [Wed, 17 Sep 2003 12:36:44 +0000 (12:36 +0000)]
Replaced enums by #define's in definitions of word, meta and string types.
It's less elegant, but it gives a chance to detect whether a specific type
exists or not.

21 years agoAllow submakefiles to add their own installation directories and to override
Martin Mares [Mon, 15 Sep 2003 07:45:47 +0000 (07:45 +0000)]
Allow submakefiles to add their own installation directories and to override
the run/bin directory. Propagate the directories to the installer.

21 years agoUpdated the installation script to always check for missing directories.
Martin Mares [Fri, 29 Aug 2003 17:39:34 +0000 (17:39 +0000)]
Updated the installation script to always check for missing directories.

21 years agoRecognition of variable types in parse_args is now automatic.
Tomas Valla [Sun, 10 Aug 2003 01:30:50 +0000 (01:30 +0000)]
Recognition of variable types in parse_args is now automatic.

21 years agoAdded 'array' feature to handle multiple variable occurrences.
Tomas Valla [Sun, 20 Jul 2003 19:17:22 +0000 (19:17 +0000)]
Added 'array' feature to handle multiple variable occurrences.

21 years agoJust to make it more comfortable.
Tomas Valla [Thu, 10 Jul 2003 18:12:57 +0000 (18:12 +0000)]
Just to make it more comfortable.

21 years agoPatch to allow processing of multiple occurences of the same argument.
Tomas Valla [Wed, 9 Jul 2003 01:29:16 +0000 (01:29 +0000)]
Patch to allow processing of multiple occurences of the same argument.
Now it returns a string of values separated by "&".

21 years agofixed headers
Robert Spalek [Fri, 4 Jul 2003 13:17:24 +0000 (13:17 +0000)]
fixed headers

21 years agofixed generated header comment
Robert Spalek [Fri, 4 Jul 2003 13:14:25 +0000 (13:14 +0000)]
fixed generated header comment

21 years agoregenerated by misc/generate from updated charset tables
Robert Spalek [Fri, 4 Jul 2003 12:53:45 +0000 (12:53 +0000)]
regenerated by misc/generate from updated charset tables

21 years agoadded (and renamed) all iso-8859-* charsets
Robert Spalek [Fri, 4 Jul 2003 12:52:02 +0000 (12:52 +0000)]
added (and renamed) all iso-8859-* charsets

21 years agoadded (and renamed) all iso-8859-{1,2,...,16} charsets
Robert Spalek [Fri, 4 Jul 2003 12:49:19 +0000 (12:49 +0000)]
added (and renamed) all iso-8859-{1,2,...,16} charsets

21 years agoadapted to UNDEFINED characters
Robert Spalek [Fri, 4 Jul 2003 12:48:39 +0000 (12:48 +0000)]
adapted to UNDEFINED characters

21 years agoupgraded from ftp.unicode.org and also renamed
Robert Spalek [Fri, 4 Jul 2003 12:47:44 +0000 (12:47 +0000)]
upgraded from ftp.unicode.org and also renamed

21 years agoupdated according to the newest tables downloaded from ftp.unicode.org
Robert Spalek [Fri, 4 Jul 2003 12:46:59 +0000 (12:46 +0000)]
updated according to the newest tables downloaded from ftp.unicode.org

21 years agoimported by `trunicode` from ftp.unicode.org
Robert Spalek [Fri, 4 Jul 2003 12:27:32 +0000 (12:27 +0000)]
imported by `trunicode` from ftp.unicode.org

21 years agoadded a tool for importing mappings from ftp.unicode.org
Robert Spalek [Fri, 4 Jul 2003 12:26:26 +0000 (12:26 +0000)]
added a tool for importing mappings from ftp.unicode.org
I will rather use this source than `recode`

21 years agoSeveral changes mixed to one commit (sorry, the CVS didn't work for a long time):
Martin Mares [Mon, 30 Jun 2003 11:18:57 +0000 (11:18 +0000)]
Several changes mixed to one commit (sorry, the CVS didn't work for a long time):

o  Changed index format ID.
o  MAX_COMPLEX_LEN went with the rest of complexes.
o  Introduced data types and handling macros for context bucket ID's.
o  Returned fp_hash() to its original definition -- the previous "fix" was
   deadly wrong: I confused indexing of bytes with indexing of words.
   Also, the fp_hash() has to be monotonic wrt. fpsort's order which the
   new one wasn't.

21 years agoDefine CONFIG_CONTEXTS whenever we use contexts.
Martin Mares [Mon, 30 Jun 2003 11:17:00 +0000 (11:17 +0000)]
Define CONFIG_CONTEXTS whenever we use contexts.

21 years agoAdd GET_U8 and PUT_U8 for completeness.
Martin Mares [Mon, 30 Jun 2003 10:57:25 +0000 (10:57 +0000)]
Add GET_U8 and PUT_U8 for completeness.

21 years agofixed handling of characters lost by recoding
Robert Spalek [Fri, 27 Jun 2003 12:39:50 +0000 (12:39 +0000)]
fixed handling of characters lost by recoding

21 years agoadded tools for stealing translation tables from recode
Robert Spalek [Fri, 27 Jun 2003 12:27:49 +0000 (12:27 +0000)]
added tools for stealing translation tables from recode

sanity checks:
- iso-8859-{1,2} tables are identical after extraction with the tables imported
  by MJ
- cp1250 tables is quite different from the existing win-1250 table, but I do
  not know which one is right

21 years agoa little bugfix of the test-tool
Robert Spalek [Fri, 20 Jun 2003 08:33:46 +0000 (08:33 +0000)]
a little bugfix of the test-tool

21 years agoone test has been meanwhile adjusted
Robert Spalek [Fri, 20 Jun 2003 08:19:42 +0000 (08:19 +0000)]
one test has been meanwhile adjusted

21 years agoI have meanwhile fiddled a little with #include's after I sent it to MJ
Robert Spalek [Fri, 20 Jun 2003 08:18:56 +0000 (08:18 +0000)]
I have meanwhile fiddled a little with #include's after I sent it to MJ

21 years agoFix bug in traversing of empty heap.
Martin Mares [Wed, 18 Jun 2003 18:28:55 +0000 (18:28 +0000)]
Fix bug in traversing of empty heap.

21 years agoTweak the binomial heaps a bit to make them easier to use.
Martin Mares [Wed, 18 Jun 2003 16:40:03 +0000 (16:40 +0000)]
Tweak the binomial heaps a bit to make them easier to use.

21 years agoAdded a very simple generic implementation of binomial heaps. Their main
Martin Mares [Wed, 18 Jun 2003 13:07:10 +0000 (13:07 +0000)]
Added a very simple generic implementation of binomial heaps. Their main
virtue is that they are fully dynamic, needing no upper bounds on the
number of items nor frequent reallocations. Their main disadvantage is
the need of 13 bytes per node.

I did implement only those heap operations I'll use in the gatherer,
I'll add more later.

21 years ago<...> => "...".
Martin Mares [Wed, 18 Jun 2003 13:04:51 +0000 (13:04 +0000)]
<...> => "...".

21 years agoCasting addresses to longs is not portable, use addr_int_t instead.
Martin Mares [Wed, 18 Jun 2003 10:19:46 +0000 (10:19 +0000)]
Casting addresses to longs is not portable, use addr_int_t instead.

21 years agoCorrected a couple of comments.
Martin Mares [Wed, 18 Jun 2003 10:17:14 +0000 (10:17 +0000)]
Corrected a couple of comments.

21 years agoRemoved duplicate definition of DEBUG and a couple of singned/unsigned
Martin Mares [Wed, 18 Jun 2003 10:11:46 +0000 (10:11 +0000)]
Removed duplicate definition of DEBUG and a couple of singned/unsigned
comparison warnings.

21 years agoMinor changes to the RB-tree code:
Martin Mares [Wed, 18 Jun 2003 10:11:12 +0000 (10:11 +0000)]
Minor changes to the RB-tree code:

o  Static declarations are much more common, so replace TREE_STATIC
   by TREE_GLOBAL (which does just the opposite).
o  <xxx> is reserved for system includes, use "xxx" instead.
o  Use TREE_TRACE instead of TRACE to avoid collisions with other tracing macros.

21 years agoAdded generic red-black trees Robert has sent to me some months ago.
Martin Mares [Wed, 18 Jun 2003 10:03:57 +0000 (10:03 +0000)]
Added generic red-black trees Robert has sent to me some months ago.

They probably won't get used just now, but this is a good place to keep
them in.

21 years agoReplaced clist_insert() by clist_insert_{before,after}().
Martin Mares [Sun, 15 Jun 2003 20:45:00 +0000 (20:45 +0000)]
Replaced clist_insert() by clist_insert_{before,after}().

Added clist_empty() and CLIST_WALK_DELSAFE.

21 years agoAdded a straigtforward implementation of circular linked lists. They are
Martin Mares [Sun, 15 Jun 2003 20:20:51 +0000 (20:20 +0000)]
Added a straigtforward implementation of circular linked lists. They are
a small bit less efficient than our lists.h lists (testing against zero is
faster than testing against list head), but they are nicer and they save
one pointer per list head which makes them better for hash tables etc.

21 years agoAdded prefetch functions.
Martin Mares [Fri, 13 Jun 2003 21:13:51 +0000 (21:13 +0000)]
Added prefetch functions.

21 years agoASSERT is unlikely.
Martin Mares [Thu, 12 Jun 2003 21:37:13 +0000 (21:37 +0000)]
ASSERT is unlikely.

21 years agoAdded macros for hinting branch predictor.
Martin Mares [Thu, 12 Jun 2003 21:36:57 +0000 (21:36 +0000)]
Added macros for hinting branch predictor.

21 years agoAdded mapping of URL keys according to the prefix equivalence table.
Martin Mares [Wed, 11 Jun 2003 16:11:38 +0000 (16:11 +0000)]
Added mapping of URL keys according to the prefix equivalence table.

21 years agoFunctions working with tagged characters moved from index.h to a new
Martin Mares [Wed, 11 Jun 2003 13:50:09 +0000 (13:50 +0000)]
Functions working with tagged characters moved from index.h to a new
header file tagged-text.h. This also revealed a couple of unintentional
indirect includes.

21 years agoSplit URL fingerprinting inside indexer from the other fingerprints.
Martin Mares [Wed, 11 Jun 2003 13:26:04 +0000 (13:26 +0000)]
Split URL fingerprinting inside indexer from the other fingerprints.
URL fingerprints will include server equivalence mappings and other
such hacks (for now the "www." hack), the other fingerprints (used
e.g. for hashing of strings in the index) won't.

21 years agoOops, the hash function for fingerprints was terribly biased. There should
Martin Mares [Wed, 11 Jun 2003 13:03:30 +0000 (13:03 +0000)]
Oops, the hash function for fingerprints was terribly biased. There should
be XOR, not OR. Also, the shifts are meaningless, because the fingerprint
hash is believed to be very well distributed.

Beware, this means that the current mainline is incompatible with string
indices generated by v2.4!  For now, I'm not increasing the index version,
because word matching still works with old indices and I want to profile it.

21 years agobugfix found by gcc-3.3
Robert Spalek [Sun, 8 Jun 2003 18:03:34 +0000 (18:03 +0000)]
bugfix found by gcc-3.3

21 years agoMake sherlockd calculate per-filetype number of matched documents, including
Martin Mares [Wed, 4 Jun 2003 19:31:10 +0000 (19:31 +0000)]
Make sherlockd calculate per-filetype number of matched documents, including
those failing the FILETYPE filter. This breaks the nice abstraction of hiding
all filtering under EXTENDED_ATTRS, but it will allow us to get rid of lots
of STATS queries.

21 years agoStarted v2.5.
Martin Mares [Fri, 30 May 2003 18:57:55 +0000 (18:57 +0000)]
Started v2.5.

21 years agoAdded a new card flag for cards in giant classes. Don't index selected meta
Martin Mares [Sun, 13 Apr 2003 18:12:39 +0000 (18:12 +0000)]
Added a new card flag for cards in giant classes. Don't index selected meta
types in such cards.

21 years agoAdded a new PURE attribute which means "this function can read global variables,
Martin Mares [Fri, 11 Apr 2003 17:04:02 +0000 (17:04 +0000)]
Added a new PURE attribute which means "this function can read global variables,
but it doesn't have any side effects" as opposed to CONST which promises
that no global variables will be touched.

21 years agodocumentation fixed
Robert Spalek [Fri, 28 Mar 2003 12:50:19 +0000 (12:50 +0000)]
documentation fixed

21 years agoAdded functions for moving attributes in the chain.
Martin Mares [Wed, 26 Mar 2003 20:03:40 +0000 (20:03 +0000)]
Added functions for moving attributes in the chain.

21 years agoIf the search server connection dies prematurely, give the right error
Martin Mares [Tue, 25 Mar 2003 21:38:46 +0000 (21:38 +0000)]
If the search server connection dies prematurely, give the right error
message instead of referencing an undefined variable.

21 years agoReplaced various nesting heuristics by proper parsing of parenthesized blocks.
Martin Mares [Tue, 25 Mar 2003 21:33:11 +0000 (21:33 +0000)]
Replaced various nesting heuristics by proper parsing of parenthesized blocks.
Also noted that "E" is now multi-valued.

21 years agoOne more parameters change.
Martin Mares [Tue, 25 Mar 2003 21:05:01 +0000 (21:05 +0000)]
One more parameters change.

21 years agoMore changes to the custom attribute mechanism:
Martin Mares [Mon, 24 Mar 2003 18:24:37 +0000 (18:24 +0000)]
More changes to the custom attribute mechanism:

o  Introduced the concept of extended attributes which consist of the
   custom attributes and some internally defined attributes handled
   in the same way.
o  FILETYPE and LANG are now extended attributes and they don't depend
   on the customization module. This is probably much cleaner as it
   reduces the overlap between custom parts and generic parts.
o  No problems with linking liblang because of LANG attribute.
o  idxdump got simplified.

21 years agoCreate local copy of program name to be printed in log messages
Martin Mares [Sat, 22 Mar 2003 20:38:25 +0000 (20:38 +0000)]
Create local copy of program name to be printed in log messages
to avoid having it rewritten by setproctitle().

21 years agoBetter explanation of CARD_FLAG_FRAMESET.
Martin Mares [Sat, 8 Mar 2003 13:43:09 +0000 (13:43 +0000)]
Better explanation of CARD_FLAG_FRAMESET.

21 years agoIntroduced CARD_LANG_FRAMESET.
Martin Mares [Sat, 8 Mar 2003 12:18:08 +0000 (12:18 +0000)]
Introduced CARD_LANG_FRAMESET.

21 years agoFixed bug in bucket shakedown code: it crashed with a mysterious error message
Martin Mares [Wed, 5 Mar 2003 18:09:05 +0000 (18:09 +0000)]
Fixed bug in bucket shakedown code: it crashed with a mysterious error message
("Unexpected EOF") when there was a bucket larger than the shakedown buffer
and this included even deleted buckets (which was the cause of the latest crash
on sherlock5: shakedown on a corrupted database patched the corruption by
a large deleted bucket and when I ran it again, it crashed again due to this
bucket).

Now we are able to cope with deleted buckets of any size and when we
encounter an oversized non-deleted bucket, we bail out with a proper
error message.

21 years agoOh, those misleading comments...
Martin Mares [Sun, 2 Mar 2003 20:11:16 +0000 (20:11 +0000)]
Oh, those misleading comments...

21 years agoPut back the work-around for objects generated by an old version of the
Martin Mares [Fri, 28 Feb 2003 16:51:14 +0000 (16:51 +0000)]
Put back the work-around for objects generated by an old version of the
gatherer, because some of them still haven't expired from the db.
At least the work-around is cleaner this time.

21 years agoGet a list of config files explicitly, so that the Makefiles can decide
Martin Mares [Fri, 28 Feb 2003 15:56:26 +0000 (15:56 +0000)]
Get a list of config files explicitly, so that the Makefiles can decide
what will be installed and what won't.

Also added an exception for cf/catalog-rules which is an automatically
generated file and we install it only if it doesn't exist yet.

21 years agoChanged processing of configuration files.
Martin Mares [Fri, 28 Feb 2003 14:21:24 +0000 (14:21 +0000)]
Changed processing of configuration files.

run/cf is no longer a symlink to ../cf, I've replaced it by make
rules which generate the configuration files in run/cf by preprocessing
those in cf according to CONFIG_xxx switches in config.mk (in the same
way as we already do in mkdist).

I'd like to migrate many settings local to the Centrum configs to the
main CVS without having to update several separate copies of the config.

*** CAVEAT ***  After updating to this version, you need to either
make distclean or

rm run/cf
mkdir run/cf

manually _before_ running make, else could lose your config files.

21 years agoRenamed SHERLOCK_CONFIG_xxx to CONFIG_xxx to be consistent.
Martin Mares [Fri, 28 Feb 2003 14:03:51 +0000 (14:03 +0000)]
Renamed SHERLOCK_CONFIG_xxx to CONFIG_xxx to be consistent.

21 years agoAdded routines for easy dynamic creation of strings.
Martin Mares [Thu, 27 Feb 2003 17:35:19 +0000 (17:35 +0000)]
Added routines for easy dynamic creation of strings.

21 years agoWe already should announce ourselves as v2.4.
Martin Mares [Wed, 19 Feb 2003 08:51:30 +0000 (08:51 +0000)]
We already should announce ourselves as v2.4.

21 years agoa bug fixed, it reveals when you want to process the bucket-file more times
Robert Spalek [Fri, 14 Feb 2003 14:56:26 +0000 (14:56 +0000)]
a bug fixed, it reveals when you want to process the bucket-file more times

21 years agoSped up utf8_strlen(), introduced utf8_strnlen().
Martin Mares [Fri, 14 Feb 2003 09:27:35 +0000 (09:27 +0000)]
Sped up utf8_strlen(), introduced utf8_strnlen().

21 years agoadded utf8_strlen()
Robert Spalek [Thu, 13 Feb 2003 12:42:10 +0000 (12:42 +0000)]
added utf8_strlen()

21 years agoAdded (WORD|META)_TYPES_ALL_LANGS.
Martin Mares [Wed, 12 Feb 2003 20:52:42 +0000 (20:52 +0000)]
Added (WORD|META)_TYPES_ALL_LANGS.

21 years agoTried to use libm for calculating logarithmic frequencies of words,
Martin Mares [Wed, 5 Feb 2003 18:15:24 +0000 (18:15 +0000)]
Tried to use libm for calculating logarithmic frequencies of words,
but ran into problems with function name collisions. Damn the C's flat
namespace!

Renamed our log to log_msg, but keep the original name as a macro
expanding to the new one. Also renamed log2 (which is currently not used
anywhere) to fls (find last set, akin to ffs).

Introduced lib/math.h which is a wrapper around <math.h> handling
name collisions by clever macro tricks.

21 years agoOne more #fix.
Martin Mares [Wed, 5 Feb 2003 10:56:08 +0000 (10:56 +0000)]
One more #fix.

21 years agoRemember to use xfree().
Martin Mares [Mon, 3 Feb 2003 20:12:50 +0000 (20:12 +0000)]
Remember to use xfree().

21 years agoA stupid mistake. Former one.
Martin Mares [Sun, 2 Feb 2003 22:00:38 +0000 (22:00 +0000)]
A stupid mistake. Former one.

21 years agoAdded another version of bgets() which doesn't die on too long lines and
Martin Mares [Mon, 27 Jan 2003 13:49:10 +0000 (13:49 +0000)]
Added another version of bgets() which doesn't die on too long lines and
reports an error instead.

I wrote it originally for new http.c, but the required http.c changes were
going to be too extensive, so I postponed the changes and this function
is currently unused, but probably worth saving for the future.

Also optimized the existing bgets functions a bit.

21 years agoRemoved a FIXME: the page cache balancing is certainly not optimal, but it
Martin Mares [Mon, 27 Jan 2003 13:17:45 +0000 (13:17 +0000)]
Removed a FIXME: the page cache balancing is certainly not optimal, but it
deserves more extensive changes than just tuning of contstants.

21 years agoSplit word types and meta types also in the free version.
Martin Mares [Mon, 27 Jan 2003 13:06:54 +0000 (13:06 +0000)]
Split word types and meta types also in the free version.

21 years agoFixed off-by-one error.
Martin Mares [Sat, 25 Jan 2003 13:07:36 +0000 (13:07 +0000)]
Fixed off-by-one error.

21 years agoDefined MAX_ATTR_SIZE and added checks to obj_write() to enforce it.
Martin Mares [Fri, 24 Jan 2003 20:56:50 +0000 (20:56 +0000)]
Defined MAX_ATTR_SIZE and added checks to obj_write() to enforce it.

21 years agoDon't forget to update this one.
Martin Mares [Fri, 24 Jan 2003 19:21:30 +0000 (19:21 +0000)]
Don't forget to update this one.

21 years agoObject functions are numerous enough to deserve their own header file.
Martin Mares [Fri, 24 Jan 2003 18:06:39 +0000 (18:06 +0000)]
Object functions are numerous enough to deserve their own header file.

21 years agoAdded obj_write_nocheck which writes the object as quickly as possible,
Martin Mares [Wed, 22 Jan 2003 21:24:52 +0000 (21:24 +0000)]
Added obj_write_nocheck which writes the object as quickly as possible,
avoiding checks for strange chars which are probably useful only in the
gatherer anyway.

Some more cleanups.

21 years agoOBJ_POOL_SIZE no longer needed.
Martin Mares [Wed, 22 Jan 2003 18:40:37 +0000 (18:40 +0000)]
OBJ_POOL_SIZE no longer needed.

21 years agoOops, forgot this one.
Martin Mares [Wed, 22 Jan 2003 18:31:21 +0000 (18:31 +0000)]
Oops, forgot this one.

21 years agoObjects always live in somebody else's pool.
Martin Mares [Wed, 22 Jan 2003 18:30:13 +0000 (18:30 +0000)]
Objects always live in somebody else's pool.

obj_free and odes->local_pool are gone.

21 years agoThe changes were worth updating copyright :)
Martin Mares [Wed, 22 Jan 2003 18:17:38 +0000 (18:17 +0000)]
The changes were worth updating copyright :)

21 years agoReplaced various attempts to speed up use of obj_add_attr() by simple
Martin Mares [Wed, 22 Jan 2003 18:07:24 +0000 (18:07 +0000)]
Replaced various attempts to speed up use of obj_add_attr() by simple
internal caching: odes->cached_attr points to the last attribute added
and it's guaranteed to be the last in its chain.

Removed oattr->last_same, the gain isn't worth the extra complexity
involved.

21 years agoThe $(LIBxxx) mechanism proved useful, so I'm switching to it for all other
Martin Mares [Wed, 22 Jan 2003 15:51:03 +0000 (15:51 +0000)]
The $(LIBxxx) mechanism proved useful, so I'm switching to it for all other
libraries to simplify the Makefiles a bit. Unfortunately, this introduces
ugly ordering constraints on includes in top-level Makefile, but they can
be lived with.

21 years agoget_func comment was outdated.
Martin Mares [Wed, 22 Jan 2003 11:34:43 +0000 (11:34 +0000)]
get_func comment was outdated.

21 years agoMore configuration enhancements:
Martin Mares [Wed, 22 Jan 2003 11:23:19 +0000 (11:23 +0000)]
More configuration enhancements:

o  gatherer, indexer and search server can be left out, which can be useful
   when using Sherlock for indexing databases, because unusual custom.h
   with standard word types missing makes many gatherer modules uncompilable.
o  searching by document age is optional, you can switch it off to save
   index space.
o  indexing of file types is now partially supported by the default configuration,
   because I'm going to use the bottom 5 bits of the file_type (which were
   used only for images) for storing language code of text documents and
   it certainly isn't a centrum-specific thing. On the other hand, I'd like
   to keep the exact meaning of file type codes application specific, so the
   actual matching of file types is left in the customization header. Again,
   you can switch this off to save index space.

21 years agoMoved indexer/oook.c (the catalogue & keyword processor) to where it
Martin Mares [Wed, 22 Jan 2003 10:31:13 +0000 (10:31 +0000)]
Moved indexer/oook.c (the catalogue & keyword processor) to where it
belongs: among other centrum-specific modules.

Cleaned up custom rules in makefiles: instead of defining lots of variables
for custom modules, allowed config.mk to specify a custom submakefile.

21 years agoOops, a bug in the profiler, causing time travels :)
Martin Mares [Tue, 14 Jan 2003 20:26:44 +0000 (20:26 +0000)]
Oops, a bug in the profiler, causing time travels :)

21 years agoAdded functions for manipulating bit arrays. One day, an optimized
Martin Mares [Mon, 13 Jan 2003 21:28:04 +0000 (21:28 +0000)]
Added functions for manipulating bit arrays. One day, an optimized
version for i386 using bts instruction et al. will appear.

21 years agoMJ has forgotten to add ASORT_EXTRA_ARGS at the end of the sort procedure
Robert Spalek [Mon, 13 Jan 2003 10:14:15 +0000 (10:14 +0000)]
MJ has forgotten to add ASORT_EXTRA_ARGS at the end of the sort procedure
declaration

21 years agoAdded function for measuring bucket file size (as an oid) and used it
Martin Mares [Sun, 12 Jan 2003 17:36:53 +0000 (17:36 +0000)]
Added function for measuring bucket file size (as an oid) and used it
for better progress indicator in the scanner.

21 years agoImproved array sorter according to Robert's suggestions.
Martin Mares [Sun, 12 Jan 2003 14:11:04 +0000 (14:11 +0000)]
Improved array sorter according to Robert's suggestions.

21 years agoWhen killing dots at the end of host name, remove _all_ of them, not just
Martin Mares [Sun, 5 Jan 2003 11:32:02 +0000 (11:32 +0000)]
When killing dots at the end of host name, remove _all_ of them, not just
the last one. Without this, url_canonicalize on already believed to be
canonic names wasn't constant which causes havoc in gatherd.

21 years agoAdded generic array sorter.
Martin Mares [Sat, 4 Jan 2003 15:25:06 +0000 (15:25 +0000)]
Added generic array sorter.

Benchmark results on my K6/400MHz:
mj@albireo:~/src/sherlock/run$ bin/asort-test
qsort: 19209 ms
asort: 7544 ms

21 years agoLine buffers are back on their original sizes, closes Bug #251.
Martin Mares [Sat, 4 Jan 2003 13:56:46 +0000 (13:56 +0000)]
Line buffers are back on their original sizes, closes Bug #251.

21 years agoIn some cases, nextprime(x) could have been equal to x (reported by Milan).
Martin Mares [Mon, 18 Nov 2002 17:56:16 +0000 (17:56 +0000)]
In some cases, nextprime(x) could have been equal to x (reported by Milan).