diff options
| author | krasimir <krasimir@chalmers.se> | 2010-12-14 08:46:22 +0000 |
|---|---|---|
| committer | krasimir <krasimir@chalmers.se> | 2010-12-14 08:46:22 +0000 |
| commit | 7d58efb6600d164101c439cf8954de637ea35c34 (patch) | |
| tree | 550fcfd6966efcdc98dbb0caab0eadea5edd97d1 /src/runtime/haskell/PGF/Binary.hs | |
| parent | 0c4f5030c76515d06b286d8803b034e5230b7ed3 (diff) | |
optimization in the parser for large lexicons. Now, the parser is slightly slower for grammars with a small lexicon but 3-4 times faster for the English Resource Grammar used in combination with Oxford Advanced Learners Dictionary
Diffstat (limited to 'src/runtime/haskell/PGF/Binary.hs')
| -rw-r--r-- | src/runtime/haskell/PGF/Binary.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/haskell/PGF/Binary.hs b/src/runtime/haskell/PGF/Binary.hs index 26f994797..32b751159 100644 --- a/src/runtime/haskell/PGF/Binary.hs +++ b/src/runtime/haskell/PGF/Binary.hs @@ -68,6 +68,7 @@ instance Binary Concr where , productions=productions
, pproductions = IntMap.empty
, lproductions = Map.empty
+ , lexicon = IntMap.empty
, cnccats=cnccats, totalCats=totalCats
})
|
