Find Jobs
Hire Freelancers

Optimize Python Code for Two Scripts

$10-30 USD

Cerrado
Publicado hace alrededor de 6 años

$10-30 USD

Pagado a la entrega
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()
ID del proyecto: 16214860

Información sobre el proyecto

4 propuestas
Proyecto remoto
Activo hace 6 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
4 freelancers están ofertando un promedio de $25 USD por este trabajo
Avatar del usuario
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...
$30 USD en 1 día
5,0 (7 comentarios)
3,4
3,4
Avatar del usuario
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.
$30 USD en 1 día
5,0 (10 comentarios)
3,1
3,1

Sobre este cliente

Bandera de UNITED STATES
Franklin, United States
5,0
32
Forma de pago verificada
Miembro desde abr 17, 2010

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.