<span>It is important to understand the things you want to compare.</span><div><br></div><div>Forget the technology, flatpaks are files for a program (same as you can find in a deb or rpm) running on a sandbox (so all departments they need needs to be on its sandbox). They are based on runtimes (another bunch of files expected to be much commonly shared, just that)</div><div><br></div><div>So if underneath, all bunch of files use ostree (something like a git repo) you have an initial clone and from time to time, some updates. But did you choose correct things to measure things?</div><div><br></div><div>You can find all installed apps verbatim under /var/ or ~/.var/</div><div><br></div><div>Telegram uses KDE runtime <a href="https://github.com/flathub/org.telegram.desktop/blob/master/org.telegram.desktop.json#L3">https://github.com/flathub/org.telegram.desktop/blob/master/org.telegram.desktop.json#L3</a></div><div><br></div><div>GIMP uses GNOME runtime.</div><div><br></div><div><a href="https://github.com/flathub/org.gimp.GIMP/blob/master/org.gimp.GIMP.json#L4">https://github.com/flathub/org.gimp.GIMP/blob/master/org.gimp.GIMP.json#L4</a><br></div><div><br></div><div>Install both apps you cannot expect to share anything (maybe something for the freedesktop SDK both runtimes share). See runtimes have different versions too.</div><div><br></div><div>I suppose GIMP is 200Mb and gnome runtime is 250Mb.</div><div><br></div><div>I don't think low disk space usage is a goal for flatpak, but sandboxing, so if 2 programs need same dep with different build config, that is perfectly possible, so apps always will run better, but surely using more space.</div><div><br></div><div>Do all apps need all the things a runtime bring? Surely not, if you remove something from runtime, you need to install "n" times on "n" apps. Maintainer do they best to decide what to put on them.</div><div><br><div class="gmail_quote"><div dir="ltr">El lun., 6 ago. 2018 18:36, Michael Hall <<a href="mailto:mhall119@gmail.com">mhall119@gmail.com</a>> escribió:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex" id="gmail_block_quote0">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <p>Can I ask how you are installing the Flatpaks? Because Gimp from
      Flathub is only 200MB installed.<br>
    </p>
    <pre class="m_4166088750422200124moz-signature" cols="72">Michael Hall
<a class="m_4166088750422200124moz-txt-link-abbreviated" href="mailto:mhall119@gmail.com" target="_blank">mhall119@gmail.com</a></pre></div><div text="#000000" bgcolor="#FFFFFF">
    <div class="m_4166088750422200124moz-cite-prefix">On 08/06/2018 10:31 AM, M. A. Spadaru
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      <p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><b style="font-weight:normal" id="m_4166088750422200124docs-internal-guid-fa85c6d0-0f9f-9ebb-0d68-3dbae31e9d00"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap">Hello again,</span></b></p>
      <b style="font-weight:normal" id="m_4166088750422200124docs-internal-guid-fa85c6d0-0f9f-9ebb-0d68-3dbae31e9d00"><br>
        <p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap">Sorry for not being clear enough when describing my method. Here is a better description:</span></p>
        <br>
        <p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap">Test:</span></p>
        <ul style="margin-top:0pt;margin-bottom:0pt">
          <li dir="ltr" style="list-style-type:disc;font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap">Read used disk space: d1</span></p></li>
          <li dir="ltr" style="list-style-type:disc;font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap">Install spotify</span></p></li>
          <li dir="ltr" style="list-style-type:disc;font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap">Run spotify + login + play “Manowar - Carry on”</span></p></li>
          <li dir="ltr" style="list-style-type:disc;font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap">Read used disk space: d2</span></p></li>
          <li dir="ltr" style="list-style-type:disc;font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap">Compute disk </span><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap"><b style="font-weight:normal" id="m_4166088750422200124docs-internal-guid-fa85c6d0-0f9f-9ebb-0d68-3dbae31e9d00"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap">footprint of</span></b> spotify as d2-d1</span></p></li>
          <li dir="ltr" style="list-style-type:disc;font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap">Install VSCore</span></p></li>
          <li dir="ltr" style="list-style-type:disc;font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap">Run VSCore + open an existing project folder + edit and save a file</span></p></li>
          <li dir="ltr" style="list-style-type:disc;font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap">Read used disk space: d3</span></p></li>
          <li dir="ltr" style="list-style-type:disc;font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap">Compute disk </span><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap"><b style="font-weight:normal" id="m_4166088750422200124docs-internal-guid-fa85c6d0-0f9f-9ebb-0d68-3dbae31e9d00"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap">footprint of</span></b> VSCode as d3-d2</span></p></li>
          <li dir="ltr" style="list-style-type:disc;font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap">Install telegram-desktop</span></p></li>
          <li dir="ltr" style="list-style-type:disc;font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap">Run telegram-desktop + login + send a message to a friend</span></p></li>
          <li dir="ltr" style="list-style-type:disc;font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap">Read used disk space: d4</span></p></li>
          <li dir="ltr" style="list-style-type:disc;font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap">Compute disk </span><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap"><b style="font-weight:normal" id="m_4166088750422200124docs-internal-guid-fa85c6d0-0f9f-9ebb-0d68-3dbae31e9d00"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap">footprint of</span></b> telegram-desktop as d4-d3</span></p></li>
          <li dir="ltr" style="list-style-type:disc;font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap">Install Gimp</span></p></li>
          <li dir="ltr" style="list-style-type:disc;font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap">Run Gimp + open an image</span></p></li>
          <li dir="ltr" style="list-style-type:disc;font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap">Read used disk space: d5</span></p></li>
          <li dir="ltr" style="list-style-type:disc;font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap">Compute disk </span><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap"><b style="font-weight:normal" id="m_4166088750422200124docs-internal-guid-fa85c6d0-0f9f-9ebb-0d68-3dbae31e9d00"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap">footprint of</span></b> Gimp as d5-d4</span></p></li>
          <li dir="ltr" style="list-style-type:disc;font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap">Install Android-Studio</span></p></li>
          <li dir="ltr" style="list-style-type:disc;font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap">Run Android-Studio + create new project + install sdk + run project</span></p></li>
          <li dir="ltr" style="list-style-type:disc;font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap">Read used disk space: d6</span></p></li>
          <li dir="ltr" style="list-style-type:disc;font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap">Compute disk footprint of </span><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap"><b style="font-weight:normal" id="m_4166088750422200124docs-internal-guid-fa85c6d0-0f9f-9ebb-0d68-3dbae31e9d00"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap">Android-Studio</span></b> as d6-d5</span></p></li>
        </ul>
        <br>
        <p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap">After a test I would uninstall the apps, dependencies, and settings/config files and any leftover files I could find, as best I could. Then proceed to the next test. I executed these 3 tests in this order: Native, Snap, Flatpak. </span></p>
        <p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap">I read the used space on my disk using GParted. Since I have only one partition (except swap and /boot/efi), I think this method of computing the used disk space should cover any app files, dependencies, package format specific files and any config files added to /home. It should also over any files added by snapd and the core snap.  </span></p>
        <br>
        <p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap">As pointed out by Alexander Larsson, my values seem to imply that I am starting from scratch downloading the runtimes for each flatpak application. However, this was not the case. When installing the GIMP flatpak, the flatpaks of Spotify, VSCode, and Telegram are already installed. Still GIMP needs 450MB of storage space. </span></p>
        <br>
        <p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap">I also expected that flatpak apps would share runtimes, however this does not seem to be the case. So, returning to my initial question: Is it possible to reduce the size of this overhead of each individual app? Maybe a way to force apps to share runtimes?  </span></p>
        <br>
        <p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap">Cheers,</span></p>
        <p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;white-space:pre-wrap">Mike</span></p>
      </b> <br>
      <div class="m_4166088750422200124moz-cite-prefix">On 08/06/2018 11:14 AM, Muayyad
        AlSadi wrote:<br>
      </div>
      <blockquote type="cite">
        
        <div dir="ltr">
          <div>I guess the VSCode and alike require SDK runtime (having
            compiler, headers ..etc) which is like *-devel host packages</div>
          <div>snap does not ship those</div>
          <div><br>
          </div>
        </div>
        <br>
        <div class="gmail_quote">
          <div dir="ltr">On Mon, Aug 6, 2018 at 11:37 AM Alexander
            Larsson <<a href="mailto:alexl@redhat.com" target="_blank">alexl@redhat.com</a>> wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu,
            Jul 12, 2018 at 9:05 AM, Mike Spadaru <<a href="mailto:maspadaru@gmail.com" target="_blank">maspadaru@gmail.com</a>> wrote:<br>
            > Dear Flatpak community,<br>
            ><br>
            > I attempted a small experiment to benchmark Snap and
            Flatpak. On<br>
            > Ubuntu 16.04 I picked some apps: Spotify, VSCode,
            Telegram-Desktop,<br>
            > Gimp, Android-Studio. I performed three tests Native
            (via apt, .deb or<br>
            > PPA), Snap and Flatpak. In each test I would read the
            used disk space,<br>
            > install an app, run the app and perform a task (same
            task in each<br>
            > test), then read the used disk space again. Before
            moving to the next<br>
            > test, I uninstalled all the apps and removed any config
            files created.<br>
            ><br>
            > The machine uses only one disk partition. I also
            recorded CPU, RAM and<br>
            > Power consumption, but there was no clear difference
            between the three<br>
            > package formats.  My results for the disk usage are
            shown bellow.<br>
            > Values are in mega-bytes:<br>
            ><br>
            > | App | Native | Snap | Flatpak |<br>
            > | Spotify | 240 | 290 | 980 |<br>
            > | VSCode | 270 | 220 | 1030 |<br>
            > | Telegram | 80 | 100 | 600 |<br>
            > | Gimp | 80 | 200 | 450 |<br>
            > | Android Studio | 3290 | 3330 | 5930 |<br>
            <br>
            This is not really a fair comparison. You already have
            basically all<br>
            the dependencies of the native packages installed, so
            installing just<br>
            the app is just going to measure the app itself, whereas the
            flatpak<br>
            application will download the dependencies (the runtime) in
            addition<br>
            to the app.<br>
            The same happens for snap, i.e. since you're on ubuntu it
            will already<br>
            have installed the ubuntu core snap, so you're not counting
            that space<br>
            against the app.<br>
            <br>
            Also, the values you get seem to imply that you're starting
            from<br>
            scratch downloading the runtimes for each flatpak
            application, but<br>
            most apps share the runtimes so if you were to install all
            the<br>
            flatpaks at the same time the total size would not add up to
            the sum<br>
            of your measured sizes.<br>
            <br>
            A better test of snap/flatpak might be to first remove all
            of snapd,<br>
            including all snaps (thus also the core snap), then measure
            the free<br>
            space, install snapd + al* the above snaps and compare the
            free size<br>
            with before. Then do the same with all flatpaks in one
            install.<br>
            That way you will count shared things only once, and
            accurately<br>
            include the size of the snap base in the comparison.<br>
            _______________________________________________<br>
            Flatpak mailing list<br>
            <a href="mailto:Flatpak@lists.freedesktop.org" target="_blank">Flatpak@lists.freedesktop.org</a><br>
            <a href="https://lists.freedesktop.org/mailman/listinfo/flatpak" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/flatpak</a><br>
          </blockquote>
        </div>
      </blockquote>
      <br>
      <br>
      <fieldset class="m_4166088750422200124mimeAttachmentHeader"></fieldset>
      <br>
      <pre>_______________________________________________
Flatpak mailing list
<a class="m_4166088750422200124moz-txt-link-abbreviated" href="mailto:Flatpak@lists.freedesktop.org" target="_blank">Flatpak@lists.freedesktop.org</a>
<a class="m_4166088750422200124moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/flatpak" target="_blank">https://lists.freedesktop.org/mailman/listinfo/flatpak</a>
</pre>
    </blockquote>
    <br>
  </div>

_______________________________________________<br>
Flatpak mailing list<br>
<a href="mailto:Flatpak@lists.freedesktop.org" target="_blank">Flatpak@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/flatpak" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/flatpak</a><br>
</blockquote></div></div>