Wietse Venema:
> > > I could just forget about lexicographical hashing and simply hash
> > > the hexadecimal representation of the microseconds (extracted from
> > > the queue file name and converted from base 52). With this there
> > > would be no change in file distribution compared to Postfix 2.8.
> >
> > This is an interesting idea, also, no new sub-directories in existing
> > queues. Is it worth the effort though? The code gets complex when there
> > is a mixture of 2.8 and 2.9 style files in the queue.
>
> It's really trivial code, given that most of the work was already
> encapsulated in macros. We're dealing with trivially short strings,
> so CPU performance is not a concern either.
Implemented as postfix-20110321. The code change is only a few
lines, less than the documentation change.
Wietse
20110321
Performance: with long queue file names, queue hashing now
produces the same result as with short names. Postfix uses
the hexadecimal representation of the file creation time
in microseconds, instead of the beginning of the file name
which changes once every year or so, a problem that was
reported by Victor Duchovni. The base 16 encoding gives
finer control over the number of directories than possible
with base 52 encoding. Files: global/mail_queue.[hc]. This
change requires "postfix reload".