whitequark/parser — pull request #44 by bbatsov (2013-05-18 09:02:35+00:00)
Title: Improve efficiency of encoding detection in Source::Buffer

As you conjectured the use of a regexp yields better performance.

This fixes #39.