top | item 39505219

(no title)

quag | 2 years ago

Thanks for the reply! I think I've figured out why I couldn't get any of the examples to run. I was using the debug build rather than the release build. Take sqrt.candy for example, it takes 26 seconds to compile (25s) and execute (1s) with the debug build, and only 1 second to compile and execute on the release build. This is on a Ryzen 7700X, one of the fastest single threaded CPUs.

Similarly, average.candy takes 24s to compile the 10 line program that only depends on Core and averages three numbers (1, 2, and 3). clock.candy takes 39s to compile and then panic. echo.candy takes 23 seconds before prompting and echoing the input. file.candy takes 26s before panicking, and so on. I never waited long enough to see any of the programs work. Thanks for pointing me at needing to use --release.

  cargo run -- run ./packages/Examples/sqrt.candy  26.28s user 0.11s system 100% cpu 26.392 total
  cargo run --release -- run ./packages/Examples/sqrt.candy  0.97s user 0.08s system 100% cpu 1.052 total

discuss

order

No comments yet.