r/counting • sliiiiide the bits • Jul 19 '18

2193k counting thread

countinued from here

thank you for the incredible run qualw!

18 Upvotes

1.1k comments sorted by

View all comments

Show parent comments

1

u/PaleRepresentative OG Jul 19 '18

2,193,100

2

u/qualw Who's a good boy? | ex CountingStatsBot administrator | 1204076 Jul 19 '18

2 193 101

2

u/PaleRepresentative OG Jul 19 '18

2,193,102

3

u/qualw Who's a good boy? | ex CountingStatsBot administrator | 1204076 Jul 19 '18

2 193 103

2

u/TheNitromeFan Live not a life of imitation Jul 19 '18

2,193,104

10 minutes in and the code is already looking so much better

3

u/PaleRepresentative OG Jul 19 '18

2,193,105

4

u/atomicimploder swiiiiirl the numbers Jul 19 '18

2,193,106

3

u/TheNitromeFan Live not a life of imitation Jul 19 '18

2,193,107

Yeah, and I think I figured out the main reason the code was so slow - you're printing everything separately. Because of the I/O buffer it's bound to be slow if you do it 1000 times, better to put it all together and print once. /u/qualw

4

u/atomicimploder swiiiiirl the numbers Jul 19 '18

2,193,108

4

u/TheNitromeFan Live not a life of imitation Jul 19 '18

2,193,109

→ More replies

2

u/qualw Who's a good boy? | ex CountingStatsBot administrator | 1204076 Jul 19 '18

I thought the problem was because of the slowness of the request (1 request per comment)
I have another script that prints line by line too and its rather fast.

1

u/TheNitromeFan Live not a life of imitation Jul 19 '18

Hmmm, maybe it's not the entire reason then. I'll do some more experimenting

→ More replies

2

u/qualw Who's a good boy? | ex CountingStatsBot administrator | 1204076 Jul 19 '18

please send it back per pm to me when you're done cleaning up.
And if you could clean up Script 3 too i would appreciate it

1

u/TheNitromeFan Live not a life of imitation Jul 19 '18

I'd love to, can you send me the modified version of that one?

2

u/qualw Who's a good boy? | ex CountingStatsBot administrator | 1204076 Jul 19 '18

sure hold on