Hmm.
| pike -e 'string s=""; for (int i=0; i<65536; i++) s+="int i"+i+";\n"; compile_string(s);' | zsh: segmentation fault pike -e | -------- user 3.720 kernel 0.020 elapsed 3.793
Faster for me, at least before your changes?
/ Mirar
Previous text:
2004-01-16 01:53: Subject: file limits
I rewrote the reallocator so it doesn't crash (someone who knows C should look at it for correctness and fix the warnings). With 65535 used for non-existing identifiers and 0 not used at all(?), we get a max of 65534 identifiers in a class. The time complexity is however such that a normal testsuite test would be more of a problem than a solution. I made a small testsuite with two tests, one below and one above the limit of identifiers, and it ran in 8 minutes on an Athlon 1800+.
/ Martin Nilsson (saturator)