1
0

Simplify RelTables Structure

Some performance hit, but remember that std::vector already does block allocation so it's not too bad.

- Remove block-allocation from RelTables
- Use std::shared_ptr for lst_ptrs
- Replace vector-of-struct-of-vector with vector-of-struct.
- Remove rels from RelTables
This commit is contained in:
David Allemang
2021-10-30 18:55:06 -04:00
parent 31b5243958
commit d8efa09fc2
3 changed files with 84 additions and 100 deletions

View File

@@ -141,7 +141,7 @@ namespace tc {
[[nodiscard]] int get(int a, int b) const;
[[nodiscard]] std::vector<Rel> rels() const;
[[nodiscard]] std::vector<Rel> get_rels() const;
[[nodiscard]] SubGroup subgroup(const std::vector<int> &gens) const;