On Saturday, 13 June 2020 at 19:11:33 UTC, Andrei Alexandrescu wrote:
https://github.com/ZigaSajovic/optimizing-the-memory-layout-of-std-tuple

Would be interesting to adapt it for std.tuple.

Look possible. At first glance, staticSort on the template variadic argument based on a predicate template that looks at alignment of element maybe.

  struct Tuple(A...)
  {
      staticsort!(pred, A) members;
  }

although with the possibility to name each member this will be in practice more complicated
  • Interesting work on packing... Andrei Alexandrescu via Digitalmars-d-announce
    • Re: Interesting work o... user1234 via Digitalmars-d-announce
    • Re: Interesting work o... Timon Gehr via Digitalmars-d-announce
      • Re: Interesting wo... Andrei Alexandrescu via Digitalmars-d-announce
        • Re: Interestin... Avrina via Digitalmars-d-announce
          • Re: Intere... Andrei Alexandrescu via Digitalmars-d-announce
            • Re: I... Avrina via Digitalmars-d-announce
              • R... Paul Backus via Digitalmars-d-announce
                • ... Timon Gehr via Digitalmars-d-announce
                • ... Andrei Alexandrescu via Digitalmars-d-announce
                • ... Max Samukha via Digitalmars-d-announce
                • ... Andrej Mitrovic via Digitalmars-d-announce

Reply via email to