- Home
- Premium Memberships
- Lottery Results
- Forums
- Predictions
- Lottery Post Videos
- News
- Search Drawings
- Search Lottery Post
- Lottery Systems
- Lottery Charts
- Lottery Wheels
- Worldwide Jackpots
- Quick Picks
- On This Day in History
- Blogs
- Online Games
- Premium Features
- Contact Us
- Whitelist Lottery Post
- Rules
- Lottery Book Store
- Lottery Post Gift Shop
The time is now 2:00 pm
You last visited
May 5, 2024, 6:33 am
All times shown are
Eastern Time (GMT-5:00)
Other promising ideas to save the project.
Published:
All of the times so far are based on pure python code running on one core. The raspberry pi 5 has 4 cores. If I incorporate multithreading in some way, that could be an immediate 4x reduction in run time.
Since Pandas is a single thread library, it might make sense to let one core handle the day and night for each game with 4 separate instances of the same script. At a Python only level, that should bring the 554 years down to 138.5 years. The low end of the PyPy scale shows a 7x improvement over the same code run in straight python, that would bring it down to around near 20 years... not bad from starting at 3,000!
Obviously some research will be required, but that makes some form of c subroutines even more attractive.
Not giving up easily, not giving up at all!
Happy Coding!
Comments
I can launch each version of the script and set the core affinity without needing to add to the code !
Because the games can be paired to 7 columns...
Pick 2 mid with pick 5 mid,
Pick 2 eve with pick 5 mid,
Pick 3 mid with pick 4 eve,
Pick 3 eve with pick 4 mid.
The load can be distributed with 70 billion iterations per cpu core. This works out because the pandas library is single threaded and refactoring the code to handle thread distribution is therefore a non starter.
Post a Comment
Please Log In
To use this feature you must be logged into your Lottery Post account.
Not a member yet?
If you don't yet have a Lottery Post account, it's simple and free to create one! Just tap the Register button and after a quick process you'll be part of our lottery community.
Register