• 0 Posts
  • 6 Comments
Joined 1 year ago
cake
Cake day: October 27th, 2023

help-circle

  • Python itself is way too slow for any serious compute tasks, so I’m going to assume you’re already using NumPy to speed it up. Even so I’d look into rewriting it in some compiled language if feasible. There are CPU SIMD instructions for accelerating certain type of operations on matrices. Supposedly NumPy should be able to make use of them, but I don’t have any experience with that. Your 5600 for example supports 256-bit AVX2 operations.

    In case you have already ruled out possible code/runtime optimizations and have concluded the only way forward is more cores, the cheapest upgrade would be upgrading to 5900/5950X for 12 or 16 cores.



  • Nothing inherently insecure about RPi in specific. Same rules apply to any device in your network: if you expose services to the internet, you are introducing potential security risks. Does it have to be open to everyone? Should you limit access to specific known trusted clients? Can you use VPN rather than exposing it to internet? Is your authentication scheme robust? What data does the device have access to and does it NEED to have access to all of it?

    If your device only makes outgoing requests then your main concern is whether you trust the service its polling.