[gnutls-devel] GnuTLS | Allocate pathname on heap instead of on stack (!1493)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Tue Dec 21 07:18:38 CET 2021
Daiki Ueno commented on a discussion: https://gitlab.com/gnutls/gnutls/-/merge_requests/1493#note_790832054
I would agree with you if this was a general purpose memory allocation logic. However, in this specific change, all the allocations are immediately followed by accessing the filesystem, which I guess could have far larger latency than malloc. There are several factors that may affect this assumption (e.g., disk cache, malloc implementation may end up with sbrk/brk syscalls), but I am not sure if it is a good idea to optimize at this level, unless we find it really a bottleneck.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1493#note_790832054
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/20211221/6fd53920/attachment.html>
More information about the Gnutls-devel
mailing list