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!

Entry #288

Comments

Avatar hypersoniq -
#1
taskset
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.
Avatar hypersoniq -
#2
Could also pick up 3 more pi5 s...

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