+ 7

How to reduce time complexity in python.

I have made a pizza ordering software. Wanted to reduce compiling time.

18th Jan 2019, 9:17 PM
AKS
AKS - avatar
3 Respostas
+ 7
So... first, Python is not compiled it is an interpreted language. Also, why not embed your Python project with Cython or perform some code optimization? It can't be that bad, seriously. How big could it be?
18th Jan 2019, 9:50 PM
Dread
Dread - avatar
+ 3
Optimization is problem dependant. There ain't a general optimization solution. Without seeing your work I'm afraid there's really no help we can offer
20th Jan 2019, 12:03 PM
Dan Rhamba
Dan Rhamba - avatar
+ 2
I think you can just try to think for a time to simplify the solution the best possible ways minor the use of too many loops with high inputs and manage well your data structures
19th Jan 2019, 2:13 PM
Jay_Junior
Jay_Junior - avatar