We're a place where coders share, stay up-to-date and grow their careers.
Nice read, interesting exercise on the post.
import strutils proc main() = while true: echo static("y\n".repeat 10_000_000) when isMainModule: main()
Nim version, 2 Gb/s, not code golfed.
Interesting! I have just edited because I found a tweak to make it slightly faster, but I am still far from the speeds reported in the linked posts.
Probably the garbage collector may be struggling a little, Nim can use the Go GC and it feels slower sometimes.
Nice read, interesting exercise on the post.
Nim version, 2 Gb/s, not code golfed.
Interesting! I have just edited because I found a tweak to make it slightly faster, but I am still far from the speeds reported in the linked posts.
Probably the garbage collector may be struggling a little,
Nim can use the Go GC and it feels slower sometimes.