On Friday, 23 July 2021 at 19:32:08 UTC, H. S. Teoh wrote:
And avoid doing too much work in CTFE, which is known to be slow.

Well it very much depends HOW you do it. Like the ~= operation in ctfe is awfully slow and wastes a lot of memory depending on the size of the string, but if you preallocate and copy memory in chunks it isn't too bad at all.

And if you use format!"str"() in ctfe that alone can be a real speed killer.

That's why I wanna see the code, it is possible there's a fairly simple bottleneck to look at.

Reply via email to