monotone-commits-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-commits-diffs] Revision fefed39c9e229c9966ffca2489572c4ff791b3


From: monotone
Subject: [Monotone-commits-diffs] Revision fefed39c9e229c9966ffca2489572c4ff791b387
Date: Fri, 14 Mar 2008 06:05:51 +0100

-----------------------------------------------------------------
Revision: fefed39c9e229c9966ffca2489572c4ff791b387
Ancestor: 792837c3e8bc798257904356f382a4251dca13fd
Author: address@hidden
Date: 2008-03-14T04:50:39
Branch: net.venge.monotone

Added files:
        botan_pipe_cache.hh
Modified files:
        Makefile.am file_io.cc gzip.cc hmac.cc hmac.hh key_store.cc
        monotone.cc tester.cc transforms.cc unit_tests.cc

ChangeLog: 

Cache Botan::Pipe objects as long as possible, since they have
significant creation overhead and we use them frequently (e.g. for
every call to encode_hexenc()).  NOTE: They have a limit of 2^32 - 2
uses.  Please report it if you hit the I() in transforms.cc.  (I doubt
this will come up anywhere else.)

 * botan_pipe_cache.hh: New file.
 * Makefile.am (MOST_SOURCES): Add it.
 * file_io.cc, key_store.cc, transforms.cc: Use botan_pipe_cache.hh
   facilities to reuse Botan::Pipe objects.
 * hmac.cc, hmac.hh: Reuse Botan::Pipe object derived from a
   particular key.
 * gzip.cc: Fixes for multi-message usage.
 * monotone.cc, tester.cc, unit_tests.cc: Initialize the pipe cache.
   Make sure to initialize the botan library properly, too.  Remove
   some obsolete junk.

Attachment: txtrVcPbGkwYh.txt
Description: Diff [792837c3e8bc798257904356f382a4251dca13fd] -> [fefed39c9e229c9966ffca2489572c4ff791b387]


reply via email to

[Prev in Thread] Current Thread [Next in Thread]