GithubHelp home page GithubHelp logo

Comments (5)

mtrmac avatar mtrmac commented on August 23, 2024

Most of the delay seems to come from gnupg’s common/asshelp.c:start_new_gpg_agent, which creates a new gpg-agent process and then waits a whole second before trying to connect to the agent.

Filed https://bugzilla.redhat.com/show_bug.cgi?id=1431749 .

Creating the ephemeral GPG mechanisms once per PolicyContext instead of once per verification would still help.

from image.

rhatdan avatar rhatdan commented on August 23, 2024

@mtrmac @vrothberg Since this bugzilla was closed a while ago, can we close this issue?

from image.

vrothberg avatar vrothberg commented on August 23, 2024

I'll take the shot and close.

from image.

mtrmac avatar mtrmac commented on August 23, 2024

That bug fix helps only on Fedora distributions, it still has not been merged upstream, so e.g. Mac users are still slowed down.

And while that does help a lot, we still potentially do a lot of redundant work (including spawning gnupg* subprocesses), so keeping state over the lifetime of the PolicyContext still should be done.

https://github.com/mtrmac/image/tree/signature-caching is a very rough start of implementing this.

from image.

mtrmac avatar mtrmac commented on August 23, 2024

The time to launch gpg-agent has been improved upstream now ( https://dev.gnupg.org/T3490 ).

The signature-caching branch linked above would still avoid some of the redundant work.

from image.

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.