5 points · by greghn · 2y ago · 3 comments
without going into much deep analysis, id try writing the newlines in a different loop: you are hitting the cache(and memory) in a different way when memcopying and when writing directly.