4 ms·
What's the overhead of exceptions like in Python? With .NET at least, especially with a debugger attached, this would have a pretty considerable impact!
by kierenj 8y ago
What's the overhead of exceptions like in Python? With .NET at least, especially with a debugger attached, this would have a pretty considerable impact!
- mehrdadn 8y agoPython is already so slow that it's comparable to normal iteration. But here's an example: timeit('next(x)', 'x = iter(range(1<<30))', number=1<<22) # 0.22 timeit('''try: raise StopIteration() except StopIteration: pass''', number=1<<22) # 0.78
- dijksterhuis 8y agoI pray for the day that Tensorflow has an official rust (or scala) api.