Tips on making regex more performant?

Dmitry Olshansky dmitry.olsh at gmail.com
Tue Jun 18 13:54:50 PDT 2013


18-Jun-2013 23:22, Gary Willoughby пишет:
>> enum alert = ctRegex!r"^Alert ([0-9]+)";
>>
>> And then use it the same way.
>
> Thanks. Hmmm.. i get 500K (worse performance) using that. :/

My bet would be allocations are taking the bulk of time. Any chance to 
compile it with -profile?

>
> Any more tips?



-- 
Dmitry Olshansky


More information about the Digitalmars-d-learn mailing list