Bug 125305 - Save seems to reread zip files
Summary: Save seems to reread zip files
Status: RESOLVED DUPLICATE of bug 121652
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2 M5   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-26 05:15 EST by Dirk Baeumer CLA
Modified: 2006-02-08 06:41 EST (History)
0 users

See Also:


Attachments
The HTML trace (7.25 KB, application/octet-stream)
2006-01-26 05:16 EST, Dirk Baeumer CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Baeumer CLA 2006-01-26 05:15:41 EST
I20060125-0800

Saving a file in my environment after adding a single blank to it seems to always touch a zip file which cost ~400ms. I will attach a trace
Comment 1 Dirk Baeumer CLA 2006-01-26 05:16:30 EST
Created attachment 33636 [details]
The HTML trace
Comment 2 Jerome Lanneluc CLA 2006-01-26 06:03:49 EST
Do you still see this problem if you give more memory to eclipse (e.g. double the -Xmx value) ?
Comment 3 Dirk Baeumer CLA 2006-01-26 08:41:52 EST
I am running using 256 MB of heap space with a normal Eclipse dev workspace. Shouldn't this be enough. I will test with 512 MB.
Comment 4 Dirk Baeumer CLA 2006-01-26 10:09:58 EST
The reading goes away when I specify 512 MB. Wouldn't it make sense to let the user control this. Now I have to specify a heap of 512 MB to get a bigger cache but this will also raise the size of the process space since it seems the VM will allocate memeory instead of doing a GC. I now have an allocated heap > 256MB although I was perfectly able to run with a heap of 256 MB.
Comment 5 Philipe Mulet CLA 2006-01-26 12:53:14 EST
Well, it doesn't seem you were running so well... <g>
More seriously, we are thinking of changing the cache growing policy to be slightly more dynamic.
Comment 6 Jerome Lanneluc CLA 2006-02-08 06:41:59 EST
Fix to bug 121652 greatly improve Java model cache (I'm now able to self-host jdt.core using -Xmx64m). 
Please reopen if you still see this problem 3.2M5.

*** This bug has been marked as a duplicate of 121652 ***