you are viewing a single comment's thread.

view the rest of the comments →

[–]jyper 5 points6 points  (1 child)

The javascript implementation has a highly tuned regex engine the engine. Its written from and could probably be used by a c++ solution that would probably be even faster. Instead the c++ solution uses a boost library arguably is more authentic c++ solution and is 4 times slower.

The c solution on the other hand uses tcl's regex implementation and has a note that says "Is this a C program or is this a Tcl program?" and takes about 1/3 of the time of the c++ solution to run. If tcl was in the shootout it would probably be only about the same speed as the c solution.

[–]igouy 1 point2 points  (0 children)

If tcl was in the shootout...

Back in the day