simon-git: spigot (master): Simon Tatham

Commits to Tartarus CVS repository. tartarus-commits at lists.tartarus.org
Thu Jan 8 19:27:57 GMT 2015


TL;DR:
  9e67c8a Rewrite GeneratorSource as a trivial class.

Repository:     git://git.tartarus.org/simon/spigot.git
On the web:     http://tartarus.org/~simon-git/gitweb/?p=spigot.git
Branch updated: master
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2015-01-08 19:27:57

commit 9e67c8ab9400e362def1b987554b6aaab97717da
web diff http://tartarus.org/~simon-git/gitweb/?p=spigot.git;a=commitdiff;h=9e67c8ab9400e362def1b987554b6aaab97717da;hp=f5616c3ce97865e16b751bedebcc2b2e5d4ee422
Author: Simon Tatham <anakin at pobox.com>
Date:   Thu Jan 8 19:17:46 2015 +0000

    Rewrite GeneratorSource as a trivial class.
    
    Since I originally wrote it, I've introduced BracketingGenerator and
    BinaryIntervalSource, which are more or less designed to be connected
    back to back with maximum convenience - a pattern that already appears
    in GammaWrapper and MonotoneHelper.
    
    Replacing the special-purpose implementation of GeneratorSource with
    the completely trivial class that just links those two together not
    only simplifies the code, but also makes it faster - computing
    W(1000000) to 70 decimal places is now more than twice as fast.

 spigot.cpp |  127 ++++++------------------------------------------------------
 1 file changed, 12 insertions(+), 115 deletions(-)



More information about the tartarus-commits mailing list