This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 45393 - [perf] Saving file takes sooo long
Summary: [perf] Saving file takes sooo long
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Jan Becicka
URL:
Keywords: PERFORMANCE
: 45306 (view as bug list)
Depends on:
Blocks: 45351
  Show dependency tree
 
Reported: 2004-06-22 20:46 UTC by Jan Lahoda
Modified: 2007-09-26 09:14 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Full thread dump. (16.13 KB, text/plain)
2004-06-22 20:47 UTC, Jan Lahoda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Lahoda 2004-06-22 20:46:38 UTC
Nb trunk, own build, java module checked out
approximately at "Jun  2 16:45", JDK1.4.2_04.

(This is my guess what is happening, based on an
attached full thread dump.) When a file is saved
the repository is updated synchronously with the
save event (see attached thread dump). Although
there probably is reason for this, it is
unfortunate from a user's perspective - saving a
file can take several seconds (or even tens of
seconds).
Comment 1 Jan Lahoda 2004-06-22 20:47:21 UTC
Created attachment 15923 [details]
Full thread dump.
Comment 2 Jan Lahoda 2004-06-22 20:50:45 UTC
See also issue #45351.
Comment 3 Martin Matula 2004-06-22 21:49:23 UTC
*** Issue 45306 has been marked as a duplicate of this issue. ***
Comment 4 Jan Lahoda 2004-06-23 08:24:07 UTC
I forgot to say that the "save event" is done in the AWT Dispatch
Thread, and so the repository update blocks whole GUI (it is visible
from the thread dump).
Comment 5 Jan Becicka 2004-07-16 11:19:44 UTC
Checking in
javacore/src/org/netbeans/modules/javacore/ExclusiveMutex.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/ExclusiveMutex.java,v
 <--  ExclusiveMutex.java
new revision: 1.13; previous revision: 1.12
done
Checking in
javacore/src/org/netbeans/modules/javacore/RepositoryUpdater.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/RepositoryUpdater.java,v
 <--  RepositoryUpdater.java
new revision: 1.11; previous revision: 1.10
done
Processing log script arguments...
More commits to come...
Checking in src/org/netbeans/modules/java/JavaEditor.java;
/cvs/java/src/org/netbeans/modules/java/JavaEditor.java,v  <-- 
JavaEditor.java
new revision: 1.166; previous revision: 1.165
done
Comment 6 Jan Lahoda 2004-07-23 09:11:56 UTC
I did not have problems with save action in last builds, so
considering verified.
Comment 7 Quality Engineering 2007-09-20 10:02:15 UTC
Reorganization of java component