Merge lp:~cmm2-deactivatedaccount/pantheon-files/memory-leak-fixes into lp:~elementary-apps/pantheon-files/trunk
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Jeremy Wootten | ||||
Approved revision: | 1790 | ||||
Merged at revision: | 1789 | ||||
Proposed branch: | lp:~cmm2-deactivatedaccount/pantheon-files/memory-leak-fixes | ||||
Merge into: | lp:~elementary-apps/pantheon-files/trunk | ||||
Diff against target: |
396 lines (+122/-30) 12 files modified
libcore/gof-directory-async.vala (+45/-11) libcore/gof-file.c (+10/-0) libcore/marlin-file-operations.c (+13/-9) libcore/pantheon-files-core-C.vapi (+1/-1) src/MimeActions.vala (+2/-2) src/TextRenderer.vala (+8/-1) src/View/AbstractDirectoryView.vala (+21/-1) src/View/AbstractTreeView.vala (+1/-1) src/View/IconView.vala (+1/-1) src/View/ListView.vala (+1/-1) src/View/PropertiesWindow.vala (+13/-2) src/marlin-icon-renderer.c (+6/-0) |
||||
To merge this branch: | bzr merge lp:~cmm2-deactivatedaccount/pantheon-files/memory-leak-fixes | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jeremy Wootten | Approve | ||
Review via email: mp+254188@code.launchpad.net |
Commit message
Improve memory utilization and reduce memory leaks.
Description of the change
This branch attempts to fix most of the file related memory leaks in Pantheon Files.
The user interface patch is still somewhat experimental and may have side effects on unexpected areas of the program. It breaks some previous inadvertent assumptions that file objects are forever resident in memory. However, most of those issues should be fixed.
Memory utilization comparisons are listed below.
Preparation:
mkdir -p test/old test/new
pushd test/old
for i in $(seq 250000); do echo '' > $i; done
popd
./pantheon-
Procedure:
1) Measure memory usage.
2) Copy test/old to test/new/old.
3) Measure memory usage.
4) Create 10 files in test/new/ (this purges the undo manager history).
5) Delete test/new/*.
6) Repeat steps #1 through #5.
Results:
http://
Comparison:
http://
My apologies for the delay in submitting these changes. I forgot about this for a while, until Jeremy removed me from the bug listing. I should've mentioned something earlier.
Shouldn't be anything too unusual with the patches. Of course, let me know if something goes wrong.