Bug 360652

Summary: Reduce memory consumption
Product: [Applications] dolphin Reporter: jarkko_korpi
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: frank78ac, mail
Priority: NOR    
Version First Reported In: 16.12.2   
Target Milestone: ---   
Platform: Mint (Ubuntu based)   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description jarkko_korpi 2016-03-17 10:54:42 UTC
I just noticed that I had 3 open dolphin process open and they consumed around 12 000kb each. I know it'snt really much. I got 8 Gb of ram. But it doesnt mean it cant be improved.

I think dolphin should just somehow store the content into some buffers what directorys its holding. Having almost the same amount consumed by each dolphin process feels that it's staticly allocated and not optimized well. 

Reproducible: Always
Comment 1 Frank Reininghaus 2016-03-20 23:22:35 UTC
(In reply to jarkko_korpi from comment #0)
> I just noticed that I had 3 open dolphin process open and they consumed
> around 12 000kb each. I know it'snt really much. I got 8 Gb of ram. But it
> doesnt mean it cant be improved.

Have you analyzed, what the memory is used for, where memory is used needlessly, and do you have concrete ideas how to change the code in order to improve the memory consumption?

> I think dolphin should just somehow store the content into some buffers what
> directorys its holding. Having almost the same amount consumed by each
> dolphin process feels that it's staticly allocated and not optimized well. 

Sharing non-read-only memory between different processes is extremely non-trivial and may lead to all kinds of bugs, I'm afraid.
Comment 2 Julian Steinmann 2018-04-17 14:27:33 UTC
Thanks for reporting this issue! As Frank has already mentioned in comment 1, sharing non-read-only memory is not very feasible, which would be pretty much what you requested. I am going to close this bug for now, as there are no concrete suggestions where we need to improve the memory usage. (Plus, 12MB of RAM is really not a lot). If you have a specific idea how or where we could improve the consumption, please file a new bug. Thanks again for reporting & have a nice day :)