Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GnuPG-based login performance issue #34

Closed
3 tasks done
daniele-athome opened this issue Mar 16, 2015 · 1 comment
Closed
3 tasks done

GnuPG-based login performance issue #34

daniele-athome opened this issue Mar 16, 2015 · 1 comment
Assignees
Labels
Milestone

Comments

@daniele-athome
Copy link
Member

I already tested with mixed Kontalk 2.x and 3.x servers on the same host that concurrent accesses to the same keyring causes crashes, so using multiple contexts on the same keyring won't work.
Also, when keyrings get big (as in very big), GnuPG performance degrades like hell.

Crazy thing to make concurrent calls to GnuPG

Waiting to implement an efficient GnuPG library implementation...

Since GnuPG is currently used as a key/value storage (where keys are fingerprints), the key space can be splitted (e.g. 16 GnuPG home directories for each first hex digit of the fingerprint; for what is worth, every even number from 2 to 16 will do).
By using multiple keyrings, fingerprint key space can be splitted in many parts and GnuPG operations can happen on multiple contexts simultaneously.

  • configuration parameter for number of partitions
  • splitted keyring implementation, transparent to the caller (make an interface to the standard gnupg-for-java methods)
  • shell script for converting unified keyring to splitted keyring
@daniele-athome daniele-athome added this to the 1.0-alpha3 milestone Mar 16, 2015
@daniele-athome daniele-athome changed the title GPGME-based login performance issue GnuPG-based login performance issue Mar 16, 2015
@daniele-athome daniele-athome modified the milestones: 1.0-alpha3, 1.0-beta1 Mar 23, 2015
@daniele-athome daniele-athome modified the milestones: 1.0-alpha3, 1.0-beta1 Mar 31, 2015
@daniele-athome daniele-athome self-assigned this Mar 31, 2015
daniele-athome added a commit that referenced this issue Apr 1, 2015
Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>
@daniele-athome
Copy link
Member Author

Closed with 95b7089.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant