Git Product home page Git Product logo

python_performance_optimization_test_suite's Introduction

Hi there ๐Ÿ‘‹

python_performance_optimization_test_suite's People

Watchers

 avatar  avatar

python_performance_optimization_test_suite's Issues

Documentation Finalization

  • Finish table of contents with anchor links
  • Add descriptions to all implementations
  • Add installation section

[FEATURE ADD] Add more Prime comprehension tests

Describe the feature that is being tested/implemented
Add the following iterable comprehension methods:

  • Using tuples instead of lists entirely
    • Instead of creating a list and appending to it, create a tuple and recreate it every time a new element needs to be added
  • list converted to tuples: tuple([i for i in range(10)])
  • set: {i for i in range(10)}
  • generator: (i for i in range(10))

List any relations to other issues in this repository or in other repositories
N/A

[FEATURE ADD] Simplify function calls

Describe the feature that is being tested/implemented
Refactor function calls to use single function with a boundary=None argument.
if boundary is None, then set it to n
else it should be n/2 or math.floor(math.sqrt(n))

Pre-calculate that boundary value before calling the function to lower the performance cost of the n/2 or squre root of n boundary functions.

  • Rewrite is_prime_default(n: int, table: tuple) function to be is_prime(n: int, table: tuple, boundary=None)
  • Replace any calls to is_prime_half and is_prime_sqrt with calls to the new is+prime function
  • Rewrite inline versions of tests to also utilize this new boundary method

List any relations to other issues in this repository or in other repositories
N/A

[FEATURE ADD] Add prime number calculation tests with differently created loops

Describe the feature that is being tested/implemented
Create prime number calculation tests where loops start at 3 and increment by 2, instead of starting at 1 and incrementing by 1 (which requires calculating if the number is even or odd)

List any relations to other issues in this repository or in other repositories
N/A

Cython Compilation

  • Add missing Cython compilation scripts
  • Test compilation process for each script
    • Cython
    • Cython Lambda
    • Cython LRU
    • Cython Numpy
    • Cython Numpy Lambda
    • Optimized
    • Optimized Lambda
    • Optimized LRU
    • Optimized Numpy
    • Optimized Numpy Lambda

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.