r/codegolf • u/Mental-Spinach-3149 • Sep 24 '21
Codegolf but for run time rather than code length
Can anyone point me to where to find this? i.e. code golf with more of a practical bent?
For example, I'm thinking of code which would naively be done with for loops but can be run orders of magnitude faster with array operations
10
Upvotes
7
0
Sep 24 '21
[deleted]
0
Sep 24 '21
[deleted]
1
u/Mental-Spinach-3149 Sep 24 '21
Ah yes the lookup table dimension is problematic... The system specificity doesn't seem so bad, if you work with relative speedup and the differences are factors of 2 or even 10 between different solutions. But I hear you, the objective is dirtier than just counting characters
9
u/xigoi Sep 24 '21
https://codegolf.stackexchange.com/questions/tagged/fastest-code