BennyThadikaran / stock-pattern

A Python CLI tool to scan, detect, and plot stock chart patterns
GNU General Public License v3.0
162 stars 33 forks source link

Dev #15

Closed BennyThadikaran closed 8 months ago

BennyThadikaran commented 8 months ago

This PR brings performance improvements to both plotting and scanning. CSV files are only partially loaded into memory. Use of functools.lru_cache improves chart switching performance by caching the DataFrame. A lot of error handling code has been removed further improving code clarity and performance.

306636b - Removed functions not required in utils.py

b472633 - Use csv_loader in scan_patterns and remove old code

8d99dd6 - Add lru_cache to improve performance when switching charts

0e2ef84 - Replace Union types with Optional

077e72e

1a3e369 - Added csv_loader function for fast chunked loading of CSV