From: Nicolas C. <nca...@mo...> - 2006-01-23 19:40:23
|
Christian Stork wrote: > Hi extlibbers, > > Here's a question which came to my mind a long time ago when I first > looked at the implementation of extlib's enums: > > What are the measurable benefits of the lazy enum construct compared > against the naive alternative of building intermediate data > structures? > > I haven't seen any performance measurements. Obviously, it's a good > idea for really big arrays/lists, but what should be considered "really > big" in this context? > > Anyway, just curious, > Chris I didn't do any serious benchmarks. In general, I think that lazy operations tends to be slower than imperative ones, especially in OCaml where allocation is very fast. Using enums is not a choice of performances but of flexibility. Nicolas |