You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/06/21 16:48:07 UTC

[GitHub] [netbeans] dborlis opened a new issue, #4264: Very slow work of "Mercurial > Show Annotations" functionality

dborlis opened a new issue, #4264:
URL: https://github.com/apache/netbeans/issues/4264

   ### Apache NetBeans version
   
   Apache NetBeans 14
   
   ### What happened
   
   I have project that uses Mercurial (hg) as revision control system.
   
   If I'm trying to use Show Annotations functionality this causes extremely high usage of memory and extra loading to the processor. The action usually takes 3 and more minutes. At the same time if I use original Mercurial command (hg annotate -n -u some-file.php) for this I just get result immediately.
   
   This is CPU, memory levels and time before clicking the menu:
   <img width="1011" alt="2022-06-21_232402" src="https://user-images.githubusercontent.com/3590328/174850895-b9f96d89-f339-41b9-8d77-e459f82673d5.png">
   
   Then I click the menu and CPU and memory levels starting to grow:
   <img width="1007" alt="2022-06-21_233135" src="https://user-images.githubusercontent.com/3590328/174851484-4add2ad6-4009-40a3-948a-c9de4eb8aff7.png">
   
   Finally it uses whole available memory, CPU level is high:
   <img width="1005" alt="2022-06-21_233314" src="https://user-images.githubusercontent.com/3590328/174851872-eaff2536-7f4a-4157-8f20-0b07066755d8.png">
   
   <img width="728" alt="2022-06-21_233511" src="https://user-images.githubusercontent.com/3590328/174852293-c5734e0d-25d8-4026-892d-fd385ed27269.png">
   
   Then memory usage goes down, but CPU level is still high:
   <img width="1009" alt="2022-06-21_233707" src="https://user-images.githubusercontent.com/3590328/174852504-45f2a1d1-93f0-4611-895a-466a2e16382c.png">
   
   Then finally after 5 minutes the CPU level goes down and I can see annotations:
   <img width="1007" alt="2022-06-21_233809" src="https://user-images.githubusercontent.com/3590328/174852783-35a1cd23-675a-4696-bce0-85d9e18efb66.png">
   
   
   ### How to reproduce
   
   - you need to have hg repository. I have more than 10k files and more than 10k commits.
   - create project from this repository and open it
   - open some file
   - right click on the tab > Mercurial > Show Annotations
   
   <img width="441" alt="2022-06-21_223940" src="https://user-images.githubusercontent.com/3590328/174845808-001e71ec-3dee-4035-9604-2268b0a294a0.png">
    
   
   ### Did this work correctly in an earlier version?
   
   Apache NetBeans 12.3 or earlier
   
   ### Operating System
   
   Windows 10 Home, 21H2, x64
   
   ### JDK
   
   jdk-16.0.2
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   The problem occurs every time when I try to get annotations. If I committed some changes to the repo, or pulled and updated and I had some file opened with annotations - the NetBeans starts to "recalculate" those annotations for all those files.
   
   This functionality worked perfectly on NetBeans 8.0.2. Then I changed computer and installed NetBeans 12.4 and it never worked anymore.
   
   For NetBeans 12.4:
   -Once I noticed this error message in the logs, but I'm not 100% sure that this is related:
   WARNING [org.netbeans.modules.mercurial]: AnnotateAction: toAnnotateLines(): Failed when matching: *** failed to import extension paper: No module named paper
   -Also sometimes (very seldom case) if memory of my computer is full and I'm trying to get annotations NetBeans starts to eat memory, but then some overflow happens, I see some error message and annotations on the place. This takes twice less time to get annotations in this case that usual.
   
   ### Are you willing to submit a pull request?
   
   No
   
   ### Code of Conduct
   
   Yes


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists