Buy commercial curl support from WolfSSL. We help you work
out your issues, debug your libcurl applications, use the API, port to new
platforms, add new features and more. With a team lead by the curl founder
himself.
Re: Fewer mallocs is better, episode #47
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Daniel Stenberg via curl-library <curl-library_at_lists.haxx.se>
Date: Tue, 1 Feb 2022 23:55:26 +0100 (CET)
On Tue, 1 Feb 2022, XSLT2.0 via curl-library wrote:
> Even if gcc does such optimisation, isn't using strcpy() instead of a
> re-implementation with a memcpy() better for maintenance purpose?
Yes it is.
Not to mention that there are a huge amount of other compilers used to build
libcurl so one particular compiler's *possible* optimization is not anything
we can rely on.
Date: Tue, 1 Feb 2022 23:55:26 +0100 (CET)
On Tue, 1 Feb 2022, XSLT2.0 via curl-library wrote:
> Even if gcc does such optimisation, isn't using strcpy() instead of a
> re-implementation with a memcpy() better for maintenance purpose?
Yes it is.
Not to mention that there are a huge amount of other compilers used to build
libcurl so one particular compiler's *possible* optimization is not anything
we can rely on.
-- / daniel.haxx.se | Commercial curl support up to 24x7 is available! | Private help, bug fixes, support, ports, new features | https://curl.se/support.html -- Unsubscribe: https://lists.haxx.se/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2022-02-01