News for hackers. Stuff that matters.
Re:Node.js in Flame Graphs by rudolf0 on Wednesday November 19, 2014 @05:31PM (#8633108)
I use RE2 and currently achieve this with regular string concatenation. Do you know if they provide an API for doing this without concatenation, and if it would be faster?
Re:Node.js in Flame Graphs by koenigdavidmj on Wednesday November 19, 2014 @05:50PM (#8633211)
The header file is available at https://code.google.com/p/re2/source/browse/re2/set.h , and if I recall correctly, it merges all the regexes into one DFA so that it's faster than just concatenating all your patterns into one string.