Re: join() in CTFE very low performance

2025-01-04 Thread monkyyy via Digitalmars-d-learn
On Saturday, 4 January 2025 at 19:54:19 UTC, realhet wrote: It looks like they discover their parameter signatures every time from zero. Maybe those 'lazy wrappers' you mentioned can be inside text()? While it usually would be correct to assume Im being informal, in this case I wasn't; for

Re: join() in CTFE very low performance

2025-01-04 Thread realhet via Digitalmars-d-learn
On Saturday, 4 January 2025 at 19:54:19 UTC, realhet wrote: On Saturday, 4 January 2025 at 15:34:27 UTC, monkyyy wrote: On Saturday, 4 January 2025 at 13:56:47 UTC, realhet wrote: Only the very complex stuff works weird in CT -> text, format... I think I've found the solution, it was so simpl

Re: join() in CTFE very low performance

2025-01-04 Thread realhet via Digitalmars-d-learn
On Saturday, 4 January 2025 at 15:34:27 UTC, monkyyy wrote: On Saturday, 4 January 2025 at 13:56:47 UTC, realhet wrote: Id check that it is a string and not some sort of lazy wrapper type doing worse of both world things; I usually use `enum string[]` for mixin-y things when possible, idk wha

Re: join() in CTFE very low performance

2025-01-04 Thread monkyyy via Digitalmars-d-learn
On Saturday, 4 January 2025 at 13:56:47 UTC, realhet wrote: Hello, I have an array of array of strings, a 2D table encapsulated in a struct: The first few rows look like this. ```d enum TBL_niceExpressionTemplates = (表([ [q{/+Note: Name+/},q{/+Note: Example+/},q{/+Note: Pattern+/},q{/+Note:

join() in CTFE very low performance

2025-01-04 Thread realhet via Digitalmars-d-learn
Hello, I have an array of array of strings, a 2D table encapsulated in a struct: The first few rows look like this. ```d enum TBL_niceExpressionTemplates = (表([ [q{/+Note: Name+/},q{/+Note: Example+/},q{/+Note: Pattern+/},q{/+Note: op+/},q{/+Note: Style+/},q{/+Note: Syntax+/},q{/+Note: Clas