Skip to content

Adding Pandas MultiIndex cache - #2818

Merged
jaredbroad merged 1 commit into
QuantConnect:masterfrom
Martin-Molinero:performance-2816-topandasdataframe
Jan 11, 2019
Merged

jaredbroad merged 1 commit into
QuantConnect:masterfrom
Martin-Molinero:performance-2816-topandasdataframe

Conversation

@Martin-Molinero

@Martin-Molinero Martin-Molinero commented Jan 11, 2019 •

Copy link
Copy Markdown
Member

Description

  • Adding a cache for the Pandas.MultiIndex, giving a significant
    performance improvement: Python HistoryBenchmark ~30%, Python average use case Benchmark algorithm ~20%
  • Adding new ListComparer class. Adding unit tests.
  • Master Python HistoryBenchmark
    233.00 seconds at 0k data points per second. Processing total of 36,975 data points.
    225.33 seconds at 0k data points per second. Processing total of 36,975 data points.
    236.79 seconds at 0k data points per second. Processing total of 36,975 data points.
  • PR Python HistoryBenchmark
    152.73 seconds at 0k data points per second. Processing total of 36,975 data points.
    160.39 seconds at 0k data points per second. Processing total of 36,975 data points.
    157.82 seconds at 0k data points per second. Processing total of 36,975 data points.
  • Master Python average use case Benchmark algorithm
    183.78 seconds at 39k data points per second. Processing total of 7,092,090 data points.
    180.41 seconds at 39k data points per second. Processing total of 7,092,090 data points.
    187.89 seconds at 38k data points per second. Processing total of 7,092,090 data points.
  • PR Python average use case Benchmark algorithm
    149.88 seconds at 47k data points per second. Processing total of 7,092,090 data points.
    147.33 seconds at 48k data points per second. Processing total of 7,092,090 data points.
    150.05 seconds at 47k data points per second. Processing total of 7,092,090 data points.

Python average use case Benchmark algorithm python_benchmark_algo.txt

Related Issue

Closes #2816

Motivation and Context

Python Execution Speed Improvement https://github.com/QuantConnect/Lean/projects/7

Requires Documentation Change

N/A

How Has This Been Tested?

Running mentioned python algorithms. Unit and regression tests.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Non-functional change (xml comments/documentation/etc)

Checklist:

  • My code follows the code style of this project.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • My branch follows the naming convention bug-<issue#>-<description or feature-<issue#>-<description>

- Adding a cache for the `Pandas.MultiIndex`, giving a significant
performance improvement.
- Adding new `ListComparer` class. Adding unit tests.
@jaredbroad
jaredbroad merged commit a55181a into QuantConnect:master Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Review PandasData and PandasConverter algorithm

2 participants