This is a migrated thread and some comments may be shown as answers.

Suspending JC Analysis

10 Answers 101 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Stuart Hemming
Top achievements
Rank 2
Stuart Hemming asked on 17 Feb 2011, 10:42 AM
I love JC, I really do.

But it is a pig when it comes to memory. 

The project I'm working on is a large solution and I'm having to stop and restart VS a couple of times a day just to be able to compile sometimes.

The thing is, I can avoid this by disabling JC, but I don't want to. If pushed, I'd be quite happy to do without JC's analysis and identification of errors and just let the compiler catch them, if I could retain the rest of the JC functionality.

There have been suggestions about making it easier for devs to enable/disable JC. How about extending that to enabling/disabling the analysis engine?

-- 
Stuart

10 Answers, 1 is accepted

Sort by
0
Stacey
Top achievements
Rank 1
answered on 18 Feb 2011, 01:49 AM
I concur. A 'disable' button would be much appreciated.
0
Stacey
Top achievements
Rank 1
answered on 22 Feb 2011, 03:48 PM
I'd just like to follow up a bit on this.

I have a single .cs file that is 860 lines at present (after condensing it) and it is by far one of the largest files in my entire Solution. I have turned off Typing Assistance (due to my previously cited bug, which you have assured me is being worked on, much to my appreciation) and I have turned down the number of visual glyphs that appear on screen (such as section lines, etc), and the performance of my IDE in this file is terrible with JustCode turned on. 

My machine is no superman, but it is far, far from 'meeting system requirements'. It is a Quad-Core Intel CPU, with an 8 GB RAM setup on Windows 7 64-bit. I can understand initial loading of a file to be slow as analysis completes, but the ongoing performance lag is getting unbearable to the point where I cannot even work in that file with JustCode running. 

The speed is such that I can start typing, and by the time the IDE can even handle my input, it's tried to bring up intellisense and my keystrokes have automatically selected things, expanded them, added in names I did not intend, etc. Trying to backspace and correct things is just as slow - and I am very certain this is due to the fact that JustCode is doing something heavy in the background.

I do see that JustCode has a "Refresh Analysis" option - this leads me to believe that it is not always calculating errors - but I do know this much.

  • With JustCode Running, large files are unusable (I had not considered 800+ lines to be 'large' until now)
  • I do not experience this problem in ReSharper 5.0 Trial (or even 6.0 EAP Trial)
  • I do not experience this problem in DevExpress CodeRush or Refactor Pro.
  • I do not experience this problem with JustCode disabled or uninstalled.

Other than the typing assistance problems, and this performance issue, JustCode runs flawlessly in every other aspect.


Other information you may find helpful.

  • The files I have the most trouble with involve heavy use of generics. I have to assume this is important because I've taken similar code of similar size using hard typed collections and experience less lag.
  • In relation to the first point, the files I have the most trouble with have heavy use of collections.
  • The files I have the most trouble with have heavy reference to both internal classes and external libraries (in my specific case, nHibernate/Fluent nHibernate/Castle)
  • I do notice a difference per method, not simply per file. A small method yields faster processing than a large method. I'm not sure if this is significant or not to you guys, but it does seem to me that in simple, quick methods, that there is much less of a problem. 
0
Stuart Hemming
Top achievements
Rank 2
answered on 25 Feb 2011, 10:15 AM
Anyone from telerik fancy answering this?

-- 
Stuart
0
Deyan Varchev
Telerik team
answered on 25 Feb 2011, 11:25 AM
Hello Stacey, Stuart,

Sorry for the late response - we've been quite busy with the new release that we are preparing. Let me address your issues separately as they appear to not be related.

Other users have also requested the functionality to allow disabling/enabling JustCode code analysis. However this is not as simple task as it may look like. Most of JustCode's other functionality depends on having the analysis working. In order to make it work without the analysis we have to make a considerable changes. We are definitely having this in our TODO list but there are other tasks with higher priority that need our attention first.

Let me address Stacey's issues now. Having a flawless and unobtrusive coding experience is one of your top priorities. Any kind of lagging of UI freezing is unacceptable for us. In order to not interfere with Visual Studio's process as less as possible we've moved all heavy operations (including code analysis) into a separate process that communicates with VS in order to update the UI. Working like this JustCode minimizes memory usage of VS and does not do any heavy operations that may cause UI freezes.

We're extensively testing JustCode in different scenarios (including large file editing  - 10 000+ lines) and by know we are not aware of such problems that you describe. Probably the issue that you describe is caused by something specific to your environment or it's a bug that we are unable to reproduce. We'll need some more details in order to be able to identify what could be going wrong.
Stacey, can you open up a separate support ticket and attach there a zip of all JustCode log files - those are located in %localappdata%\JustCode\Logs folder. Additionally it will be of great help if you can provide us with more information about the project that this issue is observed. What type of project(s) is it? How large is the solution?
It will be extremely useful for us if you could send over a sample file/project/solution that is suffering the described problem.

Thank you in advance for any assistance that you can provide us.

Best wishes,
Deyan
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Stuart Hemming
Top achievements
Rank 2
answered on 28 Feb 2011, 10:17 PM
We are definitely having this in our TODO list but there are other tasks with higher priority that need our attention first.
Put this task on PITS where we can see it and let's see if we can get a feel for how important your users really think it is.
0
Stacey
Top achievements
Rank 1
answered on 01 Mar 2011, 02:44 PM
Hey Stuart, I get where you are coming from, I really do. I think the feature I want the most (CSS support) is the most important one too, but these guys are doing a lot of work and I for one know I can't build a product as good as JustCode already is, and it's not always so black and white as the end user sees it - so ease up on the tone a bit. That remark sounds pretty hateful.

I do agree this issue should be listed on the PITS, however.
0
Stuart Hemming
Top achievements
Rank 2
answered on 01 Mar 2011, 03:23 PM
That remark sounds pretty hateful.
I fear that you have rather misread the tone of my remark.

-- 
Stuart
0
Stacey
Top achievements
Rank 1
answered on 02 Mar 2011, 02:39 PM
I fear that you have rather misread the tone of my remark.
Then all I can do is apologize and move on. I'm sorry.
0
Stuart Hemming
Top achievements
Rank 2
answered on 02 Mar 2011, 02:43 PM
Then all I can do is apologize and move on. I'm sorry.
No Worries.

-- 
Stuart
0
Deyan Varchev
Telerik team
answered on 10 Mar 2011, 04:24 PM
Hi Stuart,

 The issue at hand is already in PITS - this is the link http://www.telerik.com/support/pits.aspx#/public/justcode/1217
As you can see it already has some votes so users are asking for it.

Regards,
Deyan
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
General Discussions
Asked by
Stuart Hemming
Top achievements
Rank 2
Answers by
Stacey
Top achievements
Rank 1
Stuart Hemming
Top achievements
Rank 2
Deyan Varchev
Telerik team
Share this question
or