From 48dcad3d28acb2275d24b05d8f914b460ccce981 Mon Sep 17 00:00:00 2001 From: "Carlos R. Mafra" Date: Thu, 29 Sep 2016 20:58:38 +0100 Subject: [PATCH] BGap: Improve performance at low orders of alpha' With this change, the old (good) performance at low orders of alpha' is recovered in the new approach from commit 3567ef36 ("BGap: HUGE ~140x performance improvement at higher alpha' orders"). A future patch to include the #if 'w' >= N conditionals inside the [0-9]*ptJregs.h files themselves (like the current 4- and 5-pt files) will improve the (already good) situation even more. But that needs to wait until I can write a script to add them automatically...as doing it manually like for 4- and 5-pts is impractical at higher pts. --- BGap.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/BGap.h b/BGap.h index 4db6c94..c9009d0 100644 --- a/BGap.h +++ b/BGap.h @@ -315,13 +315,27 @@ exit; endif; + #if ('w' >= 7 && '$Npts' >= 10) #include- NptJregs/10ptJregs.h + #endif + #if ('w' >= 6 && '$Npts' >= 9) #include- NptJregs/9ptJregs.h + #endif + #if ('w' >= 5 && '$Npts' >= 8) #include- NptJregs/8ptJregs.h + #endif + #if ('w' >= 4 && '$Npts' >= 7) #include- NptJregs/7ptJregs.h + #endif + #if ('w' >= 3 && '$Npts' >= 6) #include- NptJregs/6ptJregs.h + #endif + #if ('w' >= 2 && '$Npts' >= 5) #include- NptJregs/5ptJregs.h + #endif + #if ('w' >= 1 && '$Npts' >= 4) #include- NptJregs/4ptJregs.h + #endif id tmpF(i?) = 1; id zwgt = 1; -- 2.11.4.GIT