bshepherdson / foam-migration-test

0 stars 0 forks source link

Optimize STARTS_WITH and CONTAINS mLangs. #200

Open bshepherdson opened 10 years ago

bshepherdson commented 10 years ago

From k...@chromium.org on February 19, 2014 09:40:20

CONTAINS_IC is already optimized to use a regex instead of indexOf, and runs about twice as fast because of it.

Use the same technique for STARTS_WITH and CONTAINS as well.

Original issue: http://code.google.com/p/foam-framework/issues/detail?id=200