Mark T.B. Carroll wrote:
I have a program that basically has,
data Expression =
Value Value
| EVariable Variable | other stuff ...
data Value = VNumber Number | other stuff ...
data Variable = Variable { variable_name :: String, variable_time ::
Expression }
Johan Nordlander wrote:
For comparison, the example could be formulated in O'Haskell as
follows:
data Variable = Variable { variable_name :: String, variable_time ::
Expression }
data Number = Number { value :: Double, dimension :: Dimension }
data Value Number = other stuff
On Tue, Oct 08, 2002 at 07:52:52AM -0700, Hal Daume III wrote:
I already saw one reply mentioning using state threaded arrays. This is
probably your best (in terms of performance) option.
Keep in mind that Haskell arrays are *not* your standard imperative
arrays. Like imperative arrays,
G'day all.
On Wed, Oct 09, 2002 at 02:29:26PM -0400, David Roundy wrote:
I get a speedup of about a factor of 6 for the test files I was using (of
course, this would depend on file size), and find that now only 2% of my
time is spent in that function. I'm still something like 100 times