https://issues.dlang.org/show_bug.cgi?id=14256

Vladimir Panteleev <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |dlang-bugzilla@thecybershad
                   |                            |ow.net
         Resolution|---                         |WORKSFORME

--- Comment #10 from Vladimir Panteleev <[email protected]> ---
>From a cursory benchmark, the D programs perform as well as or better than the
Python version for me, except for the splitLines version.

Note that splitLines also splits by Unicode line delimiters, not just \r and
\n, which is why it's slower. Replacing splitLines(s) with split(s, '\n') makes
the program much faster.

Please reopen if you think the problem persists.

--

Reply via email to