curl / Mailing Lists / curl-library / Single Mail
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

From: XSLT2.0 via curl-library <curl-library_at_lists.haxx.se>
Date: Tue, 1 Feb 2022 18:59:43 +0100

Cristian Rodríguez<crrodriguez_at_opensuse.org> wrote:

> I think you misunderstood me, gcc will not transform memcpy to strcpy.. but strcpy, strcat, etc..*to* the equivalent calls to memcpy
> or stpcpy..
>
Even if gcc does such optimisation, isn't using strcpy() instead of a re-implementation with a memcpy() better for maintenance purpose?

Cheers.


-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2022-02-01