PlummersSoftwareLLC / Primes

Prime Number Projects in C#/C++/Python
https://plummerssoftwarellc.github.io/PrimeView/
2.44k stars 575 forks source link

Remove non-Bash external dependencies #894

Closed dotysan closed 1 year ago

dotysan commented 1 year ago

Description

This is now pure bash. It might improve performance slightly by reducing syscalls to sleep and date.

Also only GNU date supports %N (nanoseconds), so it would have broken on BSD or other platforms that only support strftim(3) proper. The only drawback is internal printf %(datefmt)T supports only standard strftim(3) so we must use microseconds instead of nano.

Contributing requirements

rbergen commented 1 year ago

Closing this as #895 includes this PR's changes