forked from mirror/toddcox-faster
Un-template groups.
Templating the groups doesn't improve performance that much, but it severely hinders usability. Switch things to be dynamically sized so that different ranked groups are the same type. Could also now separate headers and implementation... but will probably leave it for now.
This commit is contained in:
@@ -22,17 +22,17 @@ void test(const G &group) {
|
||||
}
|
||||
|
||||
int main() {
|
||||
test(tc::group::H<2>());
|
||||
test(tc::group::H<3>());
|
||||
test(tc::group::H<4>());
|
||||
test(tc::group::H(2));
|
||||
test(tc::group::H(3));
|
||||
test(tc::group::H(4));
|
||||
test(tc::group::T(100));
|
||||
test(tc::group::T(500));
|
||||
test(tc::group::T(1000));
|
||||
test(tc::group::E<6>());
|
||||
test(tc::group::E<7>());
|
||||
test(tc::group::B<6>());
|
||||
test(tc::group::B<7>());
|
||||
test(tc::group::B<8>());
|
||||
test(tc::group::E(6));
|
||||
test(tc::group::E(7));
|
||||
test(tc::group::B(6));
|
||||
test(tc::group::B(7));
|
||||
test(tc::group::B(8));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user