Suspending JC Analysis

11 posts, 0 answers
  1. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 17 Feb 2011 Link to this post

    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
  2. Stacey
    Stacey avatar
    14 posts
    Member since:
    Feb 2011

    Posted 17 Feb 2011 Link to this post

    I concur. A 'disable' button would be much appreciated.
  3. DevCraft banner
  4. Stacey
    Stacey avatar
    14 posts
    Member since:
    Feb 2011

    Posted 22 Feb 2011 Link to this post

    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. 
  5. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 25 Feb 2011 Link to this post

    Anyone from telerik fancy answering this?

    -- 
    Stuart
  6. Deyan Varchev
    Admin
    Deyan Varchev avatar
    150 posts

    Posted 25 Feb 2011 Link to this post

    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!
  7. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 28 Feb 2011 Link to this post

    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.
  8. Stacey
    Stacey avatar
    14 posts
    Member since:
    Feb 2011

    Posted 01 Mar 2011 Link to this post

    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.
  9. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 01 Mar 2011 Link to this post

    That remark sounds pretty hateful.
    I fear that you have rather misread the tone of my remark.

    -- 
    Stuart
  10. Stacey
    Stacey avatar
    14 posts
    Member since:
    Feb 2011

    Posted 02 Mar 2011 Link to this post

    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.
  11. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 02 Mar 2011 Link to this post

    Then all I can do is apologize and move on. I'm sorry.
    No Worries.

    -- 
    Stuart
  12. Deyan Varchev
    Admin
    Deyan Varchev avatar
    150 posts

    Posted 10 Mar 2011 Link to this post

    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!
Back to Top
DevCraft banner