[gnutls-devel] GnuTLS | WIP: Compare DNs by comparing their string representations (!1223)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Fri Mar 27 09:07:13 CET 2020




Pierre Ossman (Work account) commented on a discussion: https://gitlab.com/gnutls/gnutls/-/merge_requests/1223#note_312516311

Alright, so some testing by changing the test to loop 10000 times and running it through `perf`:

a) Old code:
 * 3.9 seconds runtime
 * 0.06% spent in `_gnutls_x509_compare_raw_dn()`

b) Current suggestion:
 * 5.1 seconds runtime (30% worse)
 * 22% spent in `_gnutls_x509_compare_raw_dn()`

c) Doing binary comparison before string comparison:
 * 4.2 seconds runtime (8% worse)
 * 7.4% spent in `_gnutls_x509_compare_raw_dn()`

So is c) good enough?

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1223#note_312516311
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20200327/aafe2b9a/attachment-0001.html>


More information about the Gnutls-devel mailing list