]> sjero.net Git - wget/blobdiff - src/http.c
[svn] Commit "minor fixes".
[wget] / src / http.c
index 5f373ab2f5f8dd42d439d96d8c5d4bb298b62e54..48c1bc5e94d578974c54a299719c4c6053922fd5 100644 (file)
@@ -960,7 +960,14 @@ File `%s' already there, will not retrieve.\n"), u->local);
           _wasn't_ specified last time, or the server contains files called
           *.orig, -N will be back to not operating correctly with -k. */
        {
-         /* Would a single s[n]printf() call be faster? */
+         /* Would a single s[n]printf() call be faster?  --dan
+
+            It wouldn't.  sprintf() is horribly slow.  At one point I
+            profiled Wget, and found that a measurable and
+            non-negligible amount of time was lost calling sprintf()
+            in url.c.  Replacing sprintf with inline calls to
+            strcpy() and long_to_string() made a difference.
+            --hniksic */
          strcpy(filename_plus_orig_suffix, u->local);
          strcpy(filename_plus_orig_suffix + filename_len, ".orig");