Coder Social home page Coder Social logo

Comments (6)

pavel-kirienko avatar pavel-kirienko commented on July 28, 2024

I guess we could give it a try. How long does it take for an AppImage to launch? Doesn't it involve unpacking the resources beforehand? If yes, does it add any noticeable latency when invoking the command?

If the changes required for this are limited to just a new CI workflow, we can accept that easily. Otherwise we may need to weigh pros and cons.

from yakut.

jrrutlan-amazon avatar jrrutlan-amazon commented on July 28, 2024

Thanks for considering it. I think inclusion is as you say; a new CI workflow. I'll gather some performance observations and comparison next week so we can weigh it up more usefully.

from yakut.

jrrutlan-amazon avatar jrrutlan-amazon commented on July 28, 2024

Some initial data from my Ubuntu 20.04 laptop (Intel® i7-10850H)
time yakut with my system Python 3.8:
real 0m0.651s
user 0m0.664s
sys 0m0.734s

time yakut.AppImage:
real 0m0.273s
user 0m0.453s
sys 0m0.894s

So the initial load is roughly just over double. But my entry point script into the AppImage has an option to drop you into a shell, from where you can time yakut:
real 0m0.487s
user 0m0.615s
sys 0m0.927s

I'd guess that the latency regardless of being 'inside' or not is due to decompression from the SquashFS file system. There might be options to not compress the AppImage, and I can investigate those also if you think this load time is unacceptable.

from yakut.

pavel-kirienko avatar pavel-kirienko commented on July 28, 2024

I don't understand the numbers. Are you saying that running yakut takes 0.651 s while yakut.AppImage takes 0.273 s, over twice less?

from yakut.

jrrutlan-amazon avatar jrrutlan-amazon commented on July 28, 2024

Oh my mistake - I've got my labels the wrong way round. So the AppImage takes just over twice as long to load. For clarity, here is the correctly labelled result:

time yakut.AppImage
real 0m0.651s
user 0m0.664s
sys 0m0.734s

time yakut with my system Python 3.8
real 0m0.273s
user 0m0.453s
sys 0m0.894s

from yakut.

pavel-kirienko avatar pavel-kirienko commented on July 28, 2024

Okay. I think this is not entirely unreasonable, and those who care may always resort to the proper installation instead. Considering that the maintenance cost is negligible (just a single CI workflow), I think we should proceed.

from yakut.

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.