Giter VIP home page Giter VIP logo

Comments (1)

anonymouse64 avatar anonymouse64 commented on June 24, 2024

There are a few warts here however,

  1. Any other snaps that the user of etrace is using on their system when we remove/reinstall the content snap will end up getting confused and could crash, etc. so we would want to warn the user if they have any such applications running, this requires some more work to identify the running snaps that are using a particular gnome library
  2. The re-connections of the snaps could take a long time to do this

I did analyze this however to see if switching the content snaps from XZ to LZO would help significantly (even though that speedup would only apply to the very first graphical snap that uses that particular content snap, all further snaps even on their cold cache startup would benefit from the first one "warming up" the cache for the content snap itself. I used this prepare script:

#!/bin/bash -e

snap remove gnome-3-28-1804
snap remove gtk-common-themes

# CHANNEL=stable/lzo
CHANNEL=stable

snap install --channel=$CHANNEL gnome-3-28-1804
snap install --channel=$CHANNEL gtk-common-themes

(this was with the stable/lzo channel of those snaps that Ken published / built for me)

with this command line option to etrace:

$ etrace exec --no-trace --repeat=10 --cold --silent --prepare-script=refresh-gnome-platform-snaps.sh 1password

The results were:

  • with xz compressed gnome snaps avg 14.05 seconds (10 runs) with std deviation of 0.40
  • with lzo compressed gnome snaps avg 13.60 seconds (10 runs) with std deviation of 0.56

from etrace.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.