﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1520	Bootstrapping needs tail recursion optimization	Martin Sjölund	Martin Sjölund	"The optimized form (list-reduction) will never be beaten, but it would be nice if we could add our own tail recursion optimization here anyway.
{{{
loadString(""
function f
  String c;
  list<String> chars;
  list<Integer> ints;
  output Real t;
algorithm
  c := System.readFile(\""text\"");
  print(\""read\n\"");
  chars := stringListStringChar(c);
  print(\""converted\n\"");
  System.startTimer();
  for i in 1:1000 loop
  //ints := list(stringCharInt(c) for c in chars);
  ints := Util.listMap(chars, stringCharInt);
  end for;
  System.stopTimer();
  t := System.getTimerIntervalTime();
  print(\""mapped\n\"");
end f;
"");
loadFile(""../dev/trunk/Compiler/Util/System.mo"");
loadFile(""../dev/trunk/Compiler/Util/Util.mo"");
f();getErrorString();
}}}"	defect	closed	high				fixed		Martin Sjölund
