Thanks Dexter, Yes, now I know it’s due to the debugging and tracing configuration. After turn off debugging and profiling, it becomes.
cpu time: 20 real time: 20 gc time: 0 If disable Preserve stacktrace also, I got. cpu time: 7 real time: 7 gc time: 0 Which is pretty decent, 16x acceleration. It's not a problem for me now. However, this behavior may give some new users the wrong impression that the language may not be very efficient, which may make some people choose not to continue trying it. >From the perspective of increasing adoption and reducing barriers, it's not a good thing. If Racket team can consider making normal run and debug run using different default settings, which conventional development environments usually do, that can easily solve this problem. Dexter Lagan於 2020年4月25日星期六 UTC+8下午5時17分31秒寫道: > > Hi Liwei, > > I believe disabling debugging and tracing does accelerate the evaluation > quite a bit from inside DrRacket. On my system, it seems to be running my > code at the same speed as the main racket binary. > > Dex > -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/cb5e4fa5-2766-4242-aff5-8933bee637c6%40googlegroups.com.