DEV Community

Discussion on: Concatenate strings in golang a quick benchmark : + or fmt.Sprintf ?

Collapse
jrwren profile image
Jay R. Wren

On strace: string concatenation isn't a system call. The strace for these programs should be the same as the strace for hello world.

Collapse
pmalhaire profile image
pmalhaire Author

I didn't mean to say that. What made you think this way ? Maybe I Can make my post more clear with your help.

Collapse
jrwren profile image
Jay R. Wren

The article is about string concatenation. Why look at strace at all?

Thread Thread
pmalhaire profile image
pmalhaire Author

It's to explain why C is more efficient than Go, which is no explicitly explained.

Thread Thread
jrwren profile image
Jay R. Wren

I don't agree that a syscall count has anything to do with a languages efficiency compared to another language.

Thread Thread
pmalhaire profile image
pmalhaire Author

I'll make it more clear.