From 98b3f414d44708b3afbbec1394eaf8d6e4debef2 Mon Sep 17 00:00:00 2001 From: Tony Date: Mon, 27 Jan 2025 16:09:10 -0500 Subject: [PATCH 1/3] comment explaining the reason for use of Taus88 --- fastRandom.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/fastRandom.cc b/fastRandom.cc index 8e01c24..f9e2494 100644 --- a/fastRandom.cc +++ b/fastRandom.cc @@ -13,6 +13,14 @@ namespace Alepha::Hydrogen ::detail:: fastRandom_m struct FastRandomState { boost::random::taus88 fastRandomState{ std::random_device{}() }; + /* The choice of Taus88 is deliberate. The more familiar Mt19937 + is only slightly slower and its cousin Mt11213b is effectively + no slower, but they require 100x to 200x as many integers to + maintain state. Thus with even only one random variable, the + latter two will exceed cache line size and create cache load, + but with several/many the cache pressure will be significant and + affect performance not just for this code but for the system. + */ std::uint32_t pool; int remainingBits= 0; From 096c4145e6a9c683797cc5c15d81b2fbd0a84174 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Thu, 14 Aug 2025 16:21:51 -0400 Subject: [PATCH 2/3] Reorganize the license files to avoid confusing gitea. --- LICENSE => COPYING | 0 MPL-LICENSE.txt => LICENSE.txt | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename LICENSE => COPYING (100%) rename MPL-LICENSE.txt => LICENSE.txt (100%) diff --git a/LICENSE b/COPYING similarity index 100% rename from LICENSE rename to COPYING diff --git a/MPL-LICENSE.txt b/LICENSE.txt similarity index 100% rename from MPL-LICENSE.txt rename to LICENSE.txt From 084ee3744fe4843b9398053a7fb5019ff27172d9 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Thu, 14 Aug 2025 16:22:42 -0400 Subject: [PATCH 3/3] I think gitea likes the license file to live in `LICENSE` --- LICENSE.txt => LICENSE | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename LICENSE.txt => LICENSE (100%) diff --git a/LICENSE.txt b/LICENSE similarity index 100% rename from LICENSE.txt rename to LICENSE