GithubHelp home page GithubHelp logo

Comments (9)

ashpieboop avatar ashpieboop commented on June 9, 2024 1

Hey, you've got to respect data integrity! What would be acceptable imho would be to cache and only full fetch when there is an actual repository update.

Though there are also etags!

from informant.

bradford-smith94 avatar bradford-smith94 commented on June 9, 2024

Thanks for using informant! What you describe is expected.

This is a side-effect of the included pacman hook. When it runs it needs to make a web request to https://archlinux.org/feeds/news (I don't cache this and it will run every time the hook is called). The time of this web request could be of varying speed depending on your internet connection.

I built the pacman hook as a feature so that I never had to remember to check the news, but if you dislike the time the hook takes to run it is possible to disable the hook. I tried to write a bit about this in the README - basically either placing an overriding hook in /etc/pacman.d/

touch /etc/pacman.d/hooks/informant.hook

or a symlink to /dev/null

ln -s /dev/null /etc/pacman.d/hooks/informant.hook

will disable the hook and you can continue to use informant as a standalone tool.

from informant.

poperigby avatar poperigby commented on June 9, 2024

Yeah I knew about the hook. It's unfortunate it causes it to hang. I wonder if their's any way to speed it up.

from informant.

bradford-smith94 avatar bradford-smith94 commented on June 9, 2024

I haven't come up with any ideas to make it faster. Some sort of caching could help with multiple calls to informant in a short time period, but it also depends on the response time of the archlinux news feed.

I'm open to ideas for improving it if you or anyone else has them, pull requests are welcome too.

from informant.

poperigby avatar poperigby commented on June 9, 2024

I think caching it and periodically updating the cache would be a good idea.

from informant.

poperigby avatar poperigby commented on June 9, 2024

That's a good idea

from informant.

bradford-smith94 avatar bradford-smith94 commented on June 9, 2024

Caching added in AUR version 0.2.0-1.

from informant.

codeclem avatar codeclem commented on June 9, 2024

Is there any more improvement that can be made here? At this point it seems the bottlenecks are out of informant's control. Should this issue be closed?

from informant.

Strykar avatar Strykar commented on June 9, 2024

If the HTTP lookup is taking time, it's not an informant issue.

from informant.

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.