Re: [polyml] Garbage collection issue with functional input streams

2008-09-16 Thread Philip Clayton
Thanks for sorting that out - that has certainly solved the problem! I have rerun the tests using the latest CVS snapshot and the results are below. Phil (* read times in seconds on Intel Core 2 Duo CPU T7500 @ 2.20GHz, 2GB *) (* Poly/ML 4.1.3 Poly/ML 5.2 SML/NJ 110.52 Poly/M

Re: [polyml] Garbage collection issue with functional input streams

2008-09-12 Thread David Matthews
Philip Clayton wrote: I have found a performance issue when using TextIO.StreamIO.input1 to read a functional stream. Looking at gc/non-gc times and using PolyML.profiling, it appears that garbage collection accounts for most of the time. There is some code below to demonstrate with stats tha

Re: [polyml] Garbage collection issue with functional input streams

2008-09-02 Thread Dave Berry
An interesting question! I don't think your interpretation was what we intended - the input function was supposed to return whatever content was available at the time of the call. Given that Andrew and John were the main instigators of the functional IO subsystem and they wrote the SML/NJ ve

Re: [polyml] Garbage collection issue with functional input streams

2008-09-01 Thread David Matthews
Philip Clayton wrote: I have found a performance issue when using TextIO.StreamIO.input1 to read a functional stream. Looking at gc/non-gc times and using PolyML.profiling, it appears that garbage collection accounts for most of the time. There is some code below to demonstrate with stats tha

[polyml] Garbage collection issue with functional input streams

2008-09-01 Thread Philip Clayton
I have found a performance issue when using TextIO.StreamIO.input1 to read a functional stream. Looking at gc/non-gc times and using PolyML.profiling, it appears that garbage collection accounts for most of the time. There is some code below to demonstrate with stats that include comparison w