On 29/06/2021 11:14 am, David Crayford wrote:

I'm using Rocket's Python which is definitely CPython (the same as IBMs). When the say "native" they mean it's a native z/OS port.


Interesting... I found a pull request that claims a 65-130x faster Python implementation with details here:
https://github.com/PlummersSoftwareLLC/Primes/pull/40

When I compared Python solution_1 to solution_2, solution_2 was about 200x faster (Ubuntu under VMWare on Windows).

The Python solution_2was just ahead of the C++ solution where I removed vector<bool>. C++ using vector<bool> was about 45% faster.

I guess it shows how much difference a knowledge of language features and picking the right structures etc. can make.

--
Andrew Rowley
Black Hill Software

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to