This Question is Possibly Answered

1 "correct" answer available (4 pts)
16 Replies Last post: Aug 31, 2011 9:05 PM by Dmitri Fedortchenko  
John Gallagher Newbie 2 posts since
Apr 9, 2011
Currently Being Moderated

Apr 9, 2011 3:53 AM

AppCode is slow

I love, love, love AppCode. It beats the pants of Xcode for refactorings, movement, features, editing, everything, except...

 

...it's painfully slow right now.

 

I know this is the EAP, but how much faster are you planning to make it? Currrently on my MacBook Pro with 4G RAM and SSD it's totally unusable - it freezes randomly, sometimes for seconds, sometimes for minutes.

 

This is the biggest thing preventing me from moving to AppCode right now. If it weren't for this, I'd seriously consider working exclusively in it right now.

 

It'd be great to have a rough timeline of when you think it'll be usably fast.

 

One last thing - is there any "nice to haves" that I can turn off and thus get it a bit faster?

Alexander Kirillin JetBrains 156 posts since
Apr 5, 2011
Currently Being Moderated
Apr 9, 2011 12:36 PM in response to: John Gallagher
Re: AppCode is slow

John,

Please provide some details. Is it slow on all kinds of projects, even on small ones? (like samples from Apple documentation). When does it freeze, during completion, typing, searching, opening the project? How much memory does appCode use? (it's displayed at the lower right corner). How large is the curent file you are editing?

Anton Makeev JetBrains 1,262 posts since
Dec 19, 2006
Currently Being Moderated
Apr 9, 2011 1:36 PM in response to: John Gallagher
Re: AppCode is slow

John,

 

Please take a cpu and a memoty snaphots of the moments when AppCode freezes (www.jetbrains.net/devnet/docs/1087).

If you can exactly tell the moment AppCode freezes, please attach the threaddumps from under '~/Library/Logs/AppCode10/ directory and write the exact time we should look for.

 

Thanks.

dgunia  Newbie 5 posts since
Dec 13, 2007
Currently Being Moderated
Jul 5, 2011 7:35 PM in response to: Anton Makeev
Re: AppCode is slow

Hi!

 

Did you find the reason and a solution for this problem?

 

I am experiencing the same. AppCode is really a great product, but (very) often it is unusable slow. Then I cannot type a single line without waiting for about 20-30 seconds after every few words. E.g. I just typed " } else" and then I tried to mark some code with the mouse. AppCode froze and I had to wait 30 seconds before it became responsive again and I could mark the code. Then I copied a line of code (which worked fine) and then I wanted to place the cursor into that line by clicking on the line. Again it took about 30 seconds before the cursor was placed in the line and I could type. These "freezes" happen all the time now, but sometimes I can work with the program for a while without these problems. The memory indicator in the lower right corner displays "223 of 508M". I use AppCode in 32-bit mode.

 

What can I do to fix these freezes? Apart from that I like AppCode very much!

 

Kind regards

 

Dominique

 

Alexander Kirillin JetBrains 156 posts since
Apr 5, 2011
Currently Being Moderated
Jul 5, 2011 8:01 PM in response to: dgunia
Re: AppCode is slow

How large is your project (the number of source files)?

Could you also take the snapshot as described above?

dgunia  Newbie 5 posts since
Dec 13, 2007
Currently Being Moderated
Jul 5, 2011 8:19 PM in response to: Alexander Kirillin
Re: AppCode is slow

The project contains 307 *.m files and additionally about the same number of header files. One header file contains a lot of macros which are used as some kind of constants. Adding an additional macro makes everything very slow, too.

 

I found a few files in the directory you mentioned. They don't contain all times when it took longer then 5 (or 10) seconds, but at least some of them. I would like to send the files by email instead of posting them here. Can I send them to "support@jetbrains.com" and tell them to forward the files to you?

 

Kind regards

 

Dominique

 

Alexander Kirillin JetBrains 156 posts since
Apr 5, 2011
Currently Being Moderated
Jul 5, 2011 8:54 PM in response to: dgunia
Re: AppCode is slow

Please mail them to cidr-developers@jetbrains.com

Thank you!

dgunia  Newbie 5 posts since
Dec 13, 2007
Currently Being Moderated
Jul 5, 2011 8:55 PM in response to: Alexander Kirillin
Re: AppCode is slow

Now it was stuck for over 10 minutes, even with "Power save mode" turned on. The "idea.log" log didn't contain anything about it, but I have attached a lot of thread dumps from that time.

 

Kind regards

 

Dominique

 

Attachments:
Alexander Kirillin JetBrains 156 posts since
Apr 5, 2011
Currently Being Moderated
Jul 5, 2011 11:15 PM in response to: dgunia
Re: AppCode is slow

Thank you for the dumps. Could you also do one more thing: there is a button "Capture CPU usage data" on the toolbar (to show the toolbar, use "View | Toolbar"). Press this button before AppCode freezes (before you type). When it wakes up, unpress this button, CPU snapshot will be saved. The more time AppCode freezes the better. Send please the snapshot to cidr-developers@jetbrains.com.

dgunia  Newbie 5 posts since
Dec 13, 2007
Currently Being Moderated
Jul 5, 2011 11:46 PM in response to: Alexander Kirillin
Re: AppCode is slow

Is it correct that this snapshot contains only CPU usage data and does not contain parts of my project's sources (like a memory snapshot would probably contain)?

 

Kind regards

 

Dominique

 

Alexander Kirillin JetBrains 156 posts since
Apr 5, 2011
Currently Being Moderated
Jul 6, 2011 4:04 PM in response to: dgunia
Re: AppCode is slow

Both CPU and memory snapshots don't contain any parts of your sources. They contain stack traces and method names of AppCode sources.

Alexander Kirillin JetBrains 156 posts since
Apr 5, 2011
Currently Being Moderated
Jul 6, 2011 5:05 PM in response to: dgunia
Re: AppCode is slow

Dominique,

According to dumps most of the time was spent in the scope view. Please try to switch off the scope view (choose either Xcode project view or files view). Does this help?

dgunia  Newbie 5 posts since
Dec 13, 2007
Currently Being Moderated
Jul 6, 2011 5:20 PM in response to: Alexander Kirillin
Re: AppCode is slow

Hi Alexander,

 

yes, great, you are right!! When using the "Files" view, it is fast and when switching back to "Scope/Project Files" and then trying to modify the project, it immediately gets slow again. So I will just use the "Files" or "XCode Project" view. I don't need the scope view, so this won't be a problem. But I assume you will nevertheless fix this issue until the final version? :-)

 

Thank you for your help! Now I can use it again, great!! :-)

 

Kind regards

 

Dominique

 

Dmitri Fedortchenko Newbie 10 posts since
Aug 15, 2011
Currently Being Moderated
Aug 15, 2011 4:52 PM in response to: John Gallagher
Re: AppCode is slow

I tried changing to files view but it's still extremely slow when editing a macro in a header file that is included in pretty much every file in the project.

 

I'm going to go out on a limb and assume that the problem is that the project is recompiled every time you change the header file?

 

I have about 300 files in my project (~ 150 .m and 150 .h).

 

I attached a CPU snapshot.

 

PS: I can't wait for appCode! It's awesome!

Anton Makeev JetBrains 1,262 posts since
Dec 19, 2006
Currently Being Moderated
Aug 26, 2011 4:11 PM in response to: Dmitri Fedortchenko
Re: AppCode is slow

Should have been fixed in the latest eap (108.1066)

Dmitri Fedortchenko Newbie 10 posts since
Aug 15, 2011
Currently Being Moderated
Aug 31, 2011 9:05 PM in response to: Anton Makeev
Re: AppCode is slow

And it was

More Like This

  • Retrieving data ...