Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002306OCaml~DO NOT USE (was: OCaml general)public2004-03-03 11:062016-12-07 17:25
Assigned To 
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0002306: resource consumption when compiling arrays
DescriptionFull_Name: Achim Blumensath
Version: 3.07
OS: Linux
Submission from: (

I've noticed that ocamlopt uses a lot of time, memory, and
stack space when compiling arrays. It seems that some of the
functions used to compile arrays are not tail-recursive.

I have one file solely consisting of about 2000 arrays of
size 256 containing strings, integers, or pointers to some
of the other arrays. To compile this file, ocamlopt needs
several minutes and between 16k and 32k of stack space. With
256 MB of memory it even starts swapping at the end of the
compilation. I can provide the source code if needed.

TagsNo tags attached.
Attached Files

- Relationships

-  Notes
administrator (administrator)
2004-04-01 15:59

Should check where the time is spent and whether there is something obviously
fixable. But input file is huge and it's not surprising ocamlopt takes time on
shinwell (developer)
2016-12-07 17:25

Given that the input file was not provided and the typical resource limits of today's systems I'm not sure there is anything to do here. More specific reports are welcome when compilation speed problems are found.

- Issue History
Date Modified Username Field Change
2005-11-18 10:13 administrator New Issue
2016-12-07 17:25 shinwell Note Added: 0016742
2016-12-07 17:25 shinwell Status acknowledged => closed
2016-12-07 17:25 shinwell Resolution open => no change required
2017-02-23 16:36 doligez Category OCaml general => -OCaml general
2017-03-03 17:55 doligez Category -OCaml general => -(deprecated) general
2017-03-03 18:01 doligez Category -(deprecated) general => ~deprecated (was: OCaml general)
2017-03-06 17:04 doligez Category ~deprecated (was: OCaml general) => ~DO NOT USE (was: OCaml general)

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker