on master help sign in
Fix comments
81339c8Harendra Kumar
bench.sh+1−3
@@ -182,7 +182,6 @@ set_benchmarks() {
182 fi
182 fi
183}
183}
184
184
185−# $1: benchmark name (linear, nested, base)
186find_report_prog() {
185find_report_prog() {
187 local prog_name="chart"
186 local prog_name="chart"
188 hash -r
187 hash -r
@@ -195,7 +194,6 @@ find_report_prog() {
195 fi
194 fi
196}
195}
197
196
198−# $1: benchmark name (linear, nested, base)
199build_report_prog() {
197build_report_prog() {
200 local prog_name="chart"
198 local prog_name="chart"
201 local prog_path=$($WHICH_COMMAND $prog_name)
199 local prog_path=$($WHICH_COMMAND $prog_name)
@@ -458,7 +456,7 @@ do
458 --graphs) GRAPH=1; shift ;;
456 --graphs) GRAPH=1; shift ;;
459 --no-measure) MEASURE=0; shift ;;
457 --no-measure) MEASURE=0; shift ;;
460 --) shift; break ;;
458 --) shift; break ;;
461− -*|--*) print_help ;;
459+ -*|--*) echo "Unknown flags: $*"; echo; print_help ;;
462 *) break ;;
460 *) break ;;
463 esac
461 esac
464done
462done
benchmark/streamly-benchmarks.cabal−4
@@ -135,10 +135,6 @@ library
135-- Benchmarks
135-- Benchmarks
136-------------------------------------------------------------------------------
136-------------------------------------------------------------------------------
137
137
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−
142common bench-options
138common bench-options
143 import: compile-options, optimization-options, bench-depends
139 import: compile-options, optimization-options, bench-depends
144 ghc-options: -rtsopts
140 ghc-options: -rtsopts
src/Streamly/Internal/Data/Parser/ParserD/Types.hs+2−2
@@ -171,7 +171,7 @@ import Streamly.Internal.Data.Strict (Tuple3'(..))
171{-# ANN type Step Fuse #-}
171{-# ANN type Step Fuse #-}
172data Step s b =
172data Step s b =
173 Partial Int s
173 Partial Int s
174− -- ^ Partial result with an optional backtrack.
174+ -- ^ Partial result with an optional backtrack request.
175 --
175 --
176 -- @Partial count state@ means a partial result is available which
176 -- @Partial count state@ means a partial result is available which
177 -- can be extracted successfully, @state@ is the opaque state of the
177 -- can be extracted successfully, @state@ is the opaque state of the
@@ -180,7 +180,7 @@ data Step s b =
180 -- input before that is dropped from the backtrack buffer.
180 -- input before that is dropped from the backtrack buffer.
181
181
182 | Continue Int s
182 | Continue Int s
183− -- ^ Need more input with an optional backtrack.
183+ -- ^ Need more input with an optional backtrack request.
184 --
184 --
185 -- @Continue count state@ means the parser has consumed the current input
185 -- @Continue count state@ means the parser has consumed the current input
186 -- but no new result is generated, @state@ is the next state of the parser.
186 -- but no new result is generated, @state@ is the next state of the parser.