If your code is long how to make its execution time faster | SoloLearn: Learn to code for FREE!

+1

If your code is long how to make its execution time faster

For example you can see the Dexter the artificial intelligence code I have posted on sololearn https://code.sololearn.com/cb3xnGf665dJ/?ref=app

10/20/2019 3:19:20 PM

Anshu Arijit

6 Answers

New Answer

+4

Shorter codes does not mean faster execution. There are many things that determine a code's speed (cpu, disk/memory, servers, cache used, thread usage, executions, retrievals, assets, etc.) but the most basic and determinate is "loops" If you can reduce the use of loops and loop executions then it would run faster

+3

+1

Thanks happy to help for your help now I understand

+1

It depends upon the logic you build the code. reduced loops-> reduced complexity-> reduced execution time.

0

Please if you know teach me how to

0

Ok Lion