Coder Social home page Coder Social logo

Comments (7)

antony-jr avatar antony-jr commented on May 28, 2024 1

@probonopd I'm currently solving the problem at its root(the library).

from appimageupdater.

probonopd avatar probonopd commented on May 28, 2024 1

Thanks @antony-jr. In this case, we could check whether a sever supports range requests and if it does not, download the whole thing.

from appimageupdater.

antony-jr avatar antony-jr commented on May 28, 2024 1

@probonopd The library is fully rewritten in C++ and working great , To test out the new library , You can use an example program.

 $ git clone https://github.com/antony-jr/AppImageUpdaterBridge
 $ cd AppImageUpdaterBridge
 $ cd examples/SimpleUpdate
 $ mkdir build
 $ cd build
 $ qmake "CONFIG+=LOGGING_DISABLED" .. # Assuming you have qt installed
 $ make -j$(nproc) 
 $ wget -c "https://gitlab.com/probono/QtQuickApp/-/jobs/73879740/artifacts/raw/QtQuickApp-x86_64.AppImage"
 $ ./SimpleUpdate QtQuickApp-x86_64.AppImage
 $ # Test Out.

I will soon fix this program , Since the hardest work is done , All I have to do is connect some slots and change the UI.

from appimageupdater.

probonopd avatar probonopd commented on May 28, 2024

Similar issue: AppImageCommunity/AppImageUpdate#94

from appimageupdater.

probonopd avatar probonopd commented on May 28, 2024

Ping @antony-jr this is very important for us. Would be great if you could look into it. Thanks!

from appimageupdater.

antony-jr avatar antony-jr commented on May 28, 2024

CC: @probonopd

AppImageUpdaterBridge can now use Gitlab as a generic zsync transport method , But the new code is still in the experimental stage but working good so far , Things that are staged in experimental will be available in a week or so after rigorous testing and refactoring. I'm also planning to make this a plugin.

These are the new features which will be available after the experimental code is merged with master,

  • Completely rewritten in C++(no legacy but still uses the old hash table so some code is inherited , The hash table is used purely because of the performance , there are future plans to change this completely).
  • Non-Blocking Single Threaded API , Everything is cyclic and does not even need mutex.
    ( Optionally the user can use a separate thread for the controllers if he/she wishes ).
  • Synced with the Qt Event Loop , i.e non-blocking single threaded API.
  • PIMPL (Pointer to IMPLementation)
  • Easy to use API.
  • Fixed Memory leaks.

EDIT: using zsync algorithm in parallel seems to be a overkill , The amount of resource needed to make it parallel is more and thus consumes more time. Therefore after a lot of trails , I decided that using the zsync algorithm in a single thread is always the fastest and reduces a lot of resource and complications. And also both multi-threaded and single thread versions run in same time.(This is due to the overuse of resource.)

from appimageupdater.

antony-jr avatar antony-jr commented on May 28, 2024

Just found out that Gitlab cannot support range requests , Thus even if we can check for updates, Its not possible to do the update , https://gitlab.com/gitlab-com/support-forum/issues/3655 (Hope they fix this soon).

from appimageupdater.

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.