Bye bye, fast compilation times
Dmitry Olshansky
dmitry.olsh at gmail.com
Tue Feb 6 13:57:26 UTC 2018
On Tuesday, 6 February 2018 at 13:51:01 UTC, Nathan S. wrote:
>> Just use the run-time version, it’s not that much slower. But
>> then again static ipRegex = regex(...) will parse and build
>> regex at CTFE.
>>
>> Maybe lazy init?
>
> FYI I've made a pull request that replaces uses of regexes in
> std.net.isemail. It turns out they weren't being used for
> anything indispensable. Import benchmark results were
> encouraging.
>
> https://github.com/dlang/phobos/pull/6129
Then again if you may not need regex for IPv4 / IPv6.
In theory it should have been the goto case for ctRegex but not
at the cost of such horrible compile times.
More information about the Digitalmars-d
mailing list