Page Speed Optimization Libraries
1.13.35.1
|
#include "js_tokenizer.h"
Structure to store RE2 patterns that can be shared by instances of JsTokenizer. These patterns are slightly expensive to compile, so we'd rather not create one for every JsTokenizer instance, but unfortunately C++ static initializers can run in non-deterministic order and cause other integration issues. Instead, you must create a JsTokenizerPatterns object yourself and pass it to the JsTokenizer constructor; ideally, you would just create one and share it for all JsTokenizer instances.