on master help sign in
Fix comments
commit81339c8f8be376d1493cb28b2f510266a4bd89b7 authorHarendra Kumar <harendra@composewell.com> dateSun 12 Jul 2020, 20:30 (6 years ago) parent03f05ed
3 files changed+3−9
bench.sh+1−3 benchmark/streamly-benchmarks.cabal−4 src/Streamly/Internal/Data/Parser/ParserD/Types.hs+2−2
bench.sh+1−3
@@ -182,7 +182,6 @@ set_benchmarks() {
182182 fi
183183}
184184
185−# $1: benchmark name (linear, nested, base)
186185find_report_prog() {
187186 local prog_name="chart"
188187 hash -r
@@ -195,7 +194,6 @@ find_report_prog() {
195194 fi
196195}
197196
198−# $1: benchmark name (linear, nested, base)
199197build_report_prog() {
200198 local prog_name="chart"
201199 local prog_path=$($WHICH_COMMAND $prog_name)
@@ -458,7 +456,7 @@ do
458456 --graphs) GRAPH=1; shift ;;
459457 --no-measure) MEASURE=0; shift ;;
460458 --) shift; break ;;
461− -*|--*) print_help ;;
459+ -*|--*) echo "Unknown flags: $*"; echo; print_help ;;
462460 *) break ;;
463461 esac
464462done
benchmark/streamly-benchmarks.cabal−4
@@ -135,10 +135,6 @@ library
135135-- Benchmarks
136136-------------------------------------------------------------------------------
137137
138−-- Whatever stack size below 32K we use GHC seems to report the stack size as
139−-- 32K at crash. Even K0K works. Therefore it probably does not make sense to
140−-- set it to lower than 32K.
141−
142138common bench-options
143139 import: compile-options, optimization-options, bench-depends
144140 ghc-options: -rtsopts
src/Streamly/Internal/Data/Parser/ParserD/Types.hs+2−2
@@ -171,7 +171,7 @@ import Streamly.Internal.Data.Strict (Tuple3'(..))
171171{-# ANN type Step Fuse #-}
172172data Step s b =
173173 Partial Int s
174− -- ^ Partial result with an optional backtrack.
174+ -- ^ Partial result with an optional backtrack request.
175175 --
176176 -- @Partial count state@ means a partial result is available which
177177 -- can be extracted successfully, @state@ is the opaque state of the
@@ -180,7 +180,7 @@ data Step s b =
180180 -- input before that is dropped from the backtrack buffer.
181181
182182 | Continue Int s
183− -- ^ Need more input with an optional backtrack.
183+ -- ^ Need more input with an optional backtrack request.
184184 --
185185 -- @Continue count state@ means the parser has consumed the current input
186186 -- but no new result is generated, @state@ is the next state of the parser.