3 ms·
>reserve space for a 64-bit integer which I shall henceforth refer to as 'i' In this scenario, regex processing should allocate more and be slower. The for loo
by yyyk 4y ago
>reserve space for a 64-bit integer which I shall henceforth refer to as 'i'
In this scenario, regex processing should allocate more and be slower. The for loop is more optimal even if takes more lines. There's probably some SIMD solution which would be the fastest.
- marcosdumay 4y agoIt's probably slower by a constant amount. It also probably allocates a constant amount of memory. On an compiled language, odds are that the regexp is faster and uses the same amount of memory.