Mirror: The magical sticky regex-based parser generator 🧙

Add note on JIT performance

+9 -1
+9 -1
README.md
··· 43 43 Alternatively, you can set up [`babel-plugin-macros`](https://github.com/kentcdodds/babel-plugin-macros) and 44 44 import `reghex` from `"reghex/macro"` instead. 45 45 46 - This step is **optional**. `reghex` can also generate its optimised JS code during runtime only! 46 + This step is **optional**. `reghex` can also generate its optimised JS code during runtime. 47 + This will only incur a tiny parsing cost on initialisation, but due to the JIT of modern 48 + JS engines there won't be any difference in performance between pre-compiled and compiled 49 + versions otherwise. 50 + 51 + Since the `reghex` runtime is rather small, for larger grammars it may even make sense not 52 + to precompile the matchers at all. For this case you may pass the `{ "codegen": false }` 53 + option to the Babel plugin, which will minify the `reghex` matcher templates without 54 + precompiling them. 47 55 48 56 ##### 3. Have fun writing parsers! 49 57