<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>
<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">
<p style="color: #777777;">
<a href="https://gitlab.com/dueno">Daiki Ueno</a>
commented on a
<a href="https://gitlab.com/gnutls/gnutls/issues/802#note_191968390">discussion</a>:
</p>
<div style="">
<blockquote dir="auto">
<p>But that adds overhead to anyone who is using libgnutls, while addressing this in _gnutls_nss_keylog_write() only has overhead if your path of execution comes here. Some kind of 'lazy loading'.</p>
</blockquote>
<p dir="auto">Hmm, I'm not sure. Even if the user doesn't want the keylog file feature, the additional overhead in the init function would be just one call of <code>secure_getenv</code>.</p>
<blockquote dir="auto">
<p>It adds an additional lock/unlock for the very first call. We could fine-tune it down to one lock/unlock with some slight additional code complexity. WDYT ?</p>
</blockquote>
<p dir="auto">I was thinking to emulate <code>pthread_once</code> somehow (though iirc we can't use that function directly because of the libpthread dependency on glibc systems).</p>
</div>
</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777;">
—
<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/issues/802#note_191968390">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/sent_notifications/be5ced47c5557a4554f8fa879e351f1b/unsubscribe">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.com/gnutls/gnutls/issues/802#note_191968390"}}</script>
</p>
</div>
</body>
</html>