Please see attached profiles for the two scripts. I am looking for someone to quickly optimize two different scripts that I will send to the freelancer we award the work to...
Objective: to optimize two scripts using at least the below methods (we haven't listed everything)
I am looking for someone who can use the map, reduce, and filter keywords to significantly speed up tight loops.
Where possible convert if's to try's.
If you see code like this:
if somethingcrazy_happened:
uhOhBetterDoSomething()
else:
doWhatWeNormallyDo()
And doWhatWeNormallyDo() would throw an exception if something crazy had happened, then it would be faster to arrange your code like this:
try:
doWhatWeNormallyDo()
except SomethingCrazy:
uhOhBetterDoSomething()
Because of the cost of name lookups, it can also be better to cache global values within functions, and bake-in simple boolean tests into functions like this:
Unoptimised function:
def foo():
if condition_that_rarely_changes:
doSomething()
else:
doSomethingElse()
Instead of using a variable, exploit the fact that the interpreter is doing a name lookup on the function anyway!
When the condition becomes true:
foo = doSomething # now foo() calls doSomething()
When the condition becomes false:
foo = doSomethingElse # now foo() calls doSomethingElse()
Expertise in Python. 5+ years of experience in desired skills.
Hands-on Exp. on skills like
Python, Linux, Shell Scripting,
Django, Flask, REST API, JSON, HTML5, MYSQL/PSQL, BOOTSTRAP, CSS3, AJAX, Jquery, javascript
FULL STACK DEVELOPER...
I am proficient in algorithms/data structures, so I can see how fast code works, and replace bottleneck code with a faster versions. Have 4 years experience with Python.
UPD. Check files you attached, there is no scripts, only meaningless profiler time with 0.000 sec execution time.