flatparse 0.3.0.2 → 0.3.0.3
raw patch · 2 files changed
+11/−13 lines, 2 files
Files
- README.md +8/−10
- flatparse.cabal +3/−3
README.md view
@@ -7,17 +7,15 @@ refers to the `ByteString` parsing input, which has pinned contiguous data, and also to the library internals, which avoids indirections and heap allocations whenever possible. -## LLVM flag--`flatparse` by default builds with the [`-fllvm` option](https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/codegens.html#llvm-code-generator-fllvm). You can disable this by turning off the `llvm` package flag. Using a [`cabal.project` file](https://cabal.readthedocs.io/en/latest/cabal-project.html#cfg-field-constraints), this is most conveniently done by adding the following:-- constraints: flatparse -llvm--[Using `stack.yaml`](https://docs.haskellstack.org/en/stable/yaml_configuration/#flags), you can add the following:+### LLVM - flags:- flatparse:- llvm: false+It is advised to build with [`-fllvm`+option](https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/codegens.html#llvm-code-generator-fllvm)+when using this package, since that can result in significant speedups (20-40%+from what I've seen). Additionally, you can enable `-fllvm` for `flatparse`+specifically by enabling the `llvm` package flag. However, this has minor+impact, since almost all parser code will be typically inlined into modules+outside `flatparse`, and compiled there. ## Features and non-features
flatparse.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack name: flatparse-version: 0.3.0.2+version: 0.3.0.3 synopsis: High-performance parsing from strict bytestrings description: @Flatparse@ is a high-performance parsing library, focusing on programming languages and human-readable data formats. See the README for more information:@@ -38,8 +38,8 @@ flag llvm description: use llvm for building- manual: False- default: True+ manual: True+ default: False library exposed-modules: