Yes, but as @sortiecat notes later in thread, printf has no good reason to malloc at all.https://twitter.com/sortiecat/status/890975633718759424 …
-
-
Replying to @RichFelker
You consider it fine that positional parameters take quadratic time?
2 replies 0 retweets 0 likes -
-
Replying to @RichFelker
How do you do unlimited positional parameters without memory allocation below quadratic time? You would have to start over the va_arg.
2 replies 0 retweets 0 likes -
Replying to @sortiecat
It's not unlimited. The limit is finite and allowed to be as low as 9. O(9²) is O(1).
1 reply 0 retweets 1 like -
Replying to @RichFelker @sortiecat
Bug without unlimited storage, unlimited positional args are at least cubic, not quadratic. O(strlen(fmt)*nargs²).
1 reply 2 retweets 2 likes -
-
Replying to @sortiecat
Yes, 9. It doesn't cubic rescan. It has a [9] array.
1 reply 0 retweets 1 like -
Replying to @RichFelker
I like that. Has this ever been a compatibility problem? What does other implementations do?
1 reply 0 retweets 0 likes
Replying to @sortiecat
IIRC just once. Don't remember what program.
7:46 PM - 29 Jul 2017
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.