-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
./harlanc test/hello.kfc took a very long time, is that normal? #110
Comments
Two minutes is a little long, but not abnormal. How much RAM do you have? Harlan uses the Nanopass framework, which unfortunately generates a lot of code at macro expansion time. Currently Harlan uses about 5GB RAM on my machine. If you have this much free, compilation takes about 40 seconds, which is better than 2 minutes, but still longer than I'd like. I'm working on a few options to reduce this. #99 is related. |
I use MacBook 516 which came out in 2010. Here is the profile:
Here is the time records:
The last 2 record is under few application is still running. I closed most application to test. The progress |
Thanks for the info! Unfortunately, this is probably about the best we'll be able to do for a while. For developing Harlan programs, you can try |
Thanks for your tips. I try
It seems didn't work? And from #11, is that Vicare works well in OS X? I really want to try Vicare. I will make a report after trying. |
The On Fri, Dec 6, 2013 at 2:52 AM, muyinliu [email protected] wrote:
|
Here is the record:
Every time compile only take few second, CPU less than 30% and less memory(about 500Mb of the progress |
Awesome! I hope this works for now until we can get the regular Please keep playing around with this and feel free to ask about any issues On Fri, Dec 6, 2013 at 11:03 AM, muyinliu [email protected] wrote:
|
417059e includes some changes that make Harlan's memory usage significantly less. Hopefully this will help. |
6e789cc improves performance some more too. Compiling Please let me know if you're still seeing multiple minute compile times though. |
@eholk I run the command "./harlanc test/hello.kfc" and it took over 2 minutes. But finally I got runnable file "hello". Is that normal? And why it took so long?
The text was updated successfully, but these errors were encountered: