Skip to content

Commit

Permalink
v1.23 - Performance Fixes for DualCore CPU
Browse files Browse the repository at this point in the history
[Screenipy Test] New Features Added - Test Passed - Merge OK
  • Loading branch information
pranjal-joshi authored Jul 21, 2021
2 parents 7ce64b2 + 2f698b7 commit 283da9d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
6 changes: 5 additions & 1 deletion src/classes/Changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from classes.ColorText import colorText

VERSION = "1.22"
VERSION = "1.23"

changelog = colorText.BOLD + '[ChangeLog]\n' + colorText.END + colorText.BLUE + '''
[1.00 - Beta]
Expand Down Expand Up @@ -109,5 +109,9 @@
[1.22]
1. Broken yfinance API fixed.
[1.23]
1. Bug fixed for DualCore CPU.
2. Dependencies updated.
--- END ---
''' + colorText.END
8 changes: 4 additions & 4 deletions src/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
1. Now, Open TradingView chart directly by clicking on the stock symbol! :tada: (Windows users should download and run the Application through the **Windows Terminal** from the Microsoft Store.)
2. Screen for the Stocks in the Index that you :heart:. Index-wise Screening is here! (Thanks to [**swarpatel23**](https://github.com/swarpatel23))
3. Now **Create Your Own Watchlist** in Excel and screen for only those stocks! Try `Option > W` :chart_with_upwards_trend:
4. Cosmetic Updates - Progressbar for showing screening process! :lipstick:
4. Bug-fixes for MultiCore CPUs. :gear:

## Downloads
* For :desktop_computer: **Windows** users, download **[screenipy.exe](https://github.com/pranjal-joshi/Screeni-py/releases/download/1.22/screenipy.exe)**
* For :penguin: **Linux** users, download **[screenipy.bin](https://github.com/pranjal-joshi/Screeni-py/releases/download/1.22/screenipy.bin)**
* For :apple: **MacOS** users, download **[screenipy.run](https://github.com/pranjal-joshi/Screeni-py/releases/download/1.22/screenipy.run)** ([Read Installation Guide](https://github.com/pranjal-joshi/Screeni-py/blob/main/INSTALLATION.md#for-macos))
* For :desktop_computer: **Windows** users, download **[screenipy.exe](https://github.com/pranjal-joshi/Screeni-py/releases/download/1.23/screenipy.exe)**
* For :penguin: **Linux** users, download **[screenipy.bin](https://github.com/pranjal-joshi/Screeni-py/releases/download/1.23/screenipy.bin)**
* For :apple: **MacOS** users, download **[screenipy.run](https://github.com/pranjal-joshi/Screeni-py/releases/download/1.23/screenipy.run)** ([Read Installation Guide](https://github.com/pranjal-joshi/Screeni-py/blob/main/INSTALLATION.md#for-macos))

## How to use?

Expand Down
2 changes: 1 addition & 1 deletion src/screenipy.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def main(testing=False):
totalConsumers = multiprocessing.cpu_count()
if totalConsumers == 1:
totalConsumers = 2 # This is required for single core machine
if configManager.cacheEnabled is True and multiprocessing.cpu_count() != 1:
if configManager.cacheEnabled is True and multiprocessing.cpu_count() > 2:
totalConsumers -= 1
consumers = [StockConsumer(tasks_queue, results_queue, screenCounter, screenResultsCounter, stockDict, proxyServer, keyboardInterruptEvent)
for _ in range(totalConsumers)]
Expand Down

0 comments on commit 283da9d

Please sign in to comment.