Comments (9)
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.
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.
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.
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.
I think caching it and periodically updating the cache would be a good idea.
from informant.
That's a good idea
from informant.
Caching added in AUR version 0.2.0-1
.
from informant.
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.
If the HTTP lookup is taking time, it's not an informant issue.
from informant.
Related Issues (20)
- informant is not the first pre-transaction hook that gets run HOT 2
- Add ability to use shortened commands HOT 5
- informant version
- Display name of package or `informant read` command HOT 4
- Warn instead of breaking during offline operations
- Wiishlist : Is it possible to give it a similar but different source to read the news HOT 2
- Does this work with AUR helpers? HOT 2
- Why does informant need sudo? HOT 2
- Error from CacheControl when permissions fail on cache directory HOT 5
- [Solved] Error with "informant read --all" HOT 1
- Informant prevents installation from local cache if there is no internet connection HOT 2
- Computer froze during pacman install, informant now hangs infinitely HOT 3
- Partial update when aborting update due to unread news HOT 5
- Fails after Python 3.10 update HOT 2
- informant fails after major Python upgrade HOT 7
- News comes in too late HOT 2
- Informant fails if there's no internet connection
- Unable to read cache information: ("Connection broken: PermissionError(13, 'Permission denied')", PermissionError(13, 'Permission denied')) HOT 6
- Use psutil instead of shelling out to ps HOT 3
- Improve informant read HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from informant.