Grew up in Russia, lived in the States, moved to Germany, sometimes live in Spain. I program since I was 13. I used to program games, maps and now I reverse engineer password managers and other stuff
Location
Berlin and Málaga
Education
MS in CS from State Polytechnic University of St. Petersburg
I'll bet the slowness in the first Go snippet comes from using fmt.Fprintln overhead and the fact you're writing 1 byte. It has nothing to do with page alignment, but rather with the buffering. You're writing many more bytes at once in the second example, doesn't matter aligned or not. Make the buffer of weird length, like 13377 bytes and try. I bet it will be as fast.
I'll bet the slowness in the first Go snippet comes from using
fmt.Fprintln
overhead and the fact you're writing 1 byte. It has nothing to do with page alignment, but rather with the buffering. You're writing many more bytes at once in the second example, doesn't matter aligned or not. Make the buffer of weird length, like 13377 bytes and try. I bet it will be as fast.I was trying to encourage others to contribute 😂
Could be a good thing to communicate explicitly, and have a standard for. Like a hashtag, a name, ... something identifiable.
Concepts to explore or expand on, similar to open source repos that are perfect for beginners.