Python Forum
Hardware question re running Anaconda
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hardware question re running Anaconda
#7
cpython compiles python 2.7 to super fast C code. then that compiles with gcc down to your architecture machine code. I think you can use the old numpy made for python 2.7 with cpython.

one thing I learned about numpy and python 3 is that you only get bad performance when you pick the wrong data types. fixed point decimal was slow but unsigned integers of a fixed size are fast. python resizes memory for integers at run time so it is even slow with integers by default. setting the memory size before run time is something that is always done in C. this is why when you do it in python you can get close to the performance in C. at some point you will need to just drop python completely and move to openMP + C or fortran. if you have a GPU workload it will be the cuda dev kit and C compiled in gcc. how hard do you want to work for that extra performance?
Reply


Messages In This Thread
Hardware question re running Anaconda - by pberrett - Jan-23-2020, 01:54 AM
RE: Hardware question re running Anaconda - by rmspacedashrf - Jan-23-2020, 04:23 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Newbie question about running Python via GUI on OSX ejwjohn 8 3,535 Feb-05-2021, 03:20 PM
Last Post: Larz60+
  Question re: running code in Editor (i.e. Atom) vs Python interpreter rok 3 2,444 Jun-29-2020, 09:20 PM
Last Post: bowlofred
  Running script from Anaconda prompt acollins555 0 2,600 Jun-15-2020, 03:40 AM
Last Post: acollins555
  How to check hardware type? MuntyScruntfundle 4 3,049 Feb-16-2019, 12:23 PM
Last Post: snippsat
  How to talk with Real Time Clock hardware? jackbk 12 11,318 Feb-15-2017, 05:53 AM
Last Post: jackbk

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020