Faster 32 bit execution with Hyperthreading disabled?

0

I am using numpy-Python scripts that take a lot of computing power to execute. The scripts themselves are already quite well written an I can say that I cannot really improve their speed by writing them better.

I have an intel i7 m620 (old guy...) on my machine, with Hyperthreading enabled. That means I have 4 threads on a dual-core CPU. Python only runs one one thread at a time, would disabling Hyperthreading in the BIOS make my program run nearly 2x faster? (only two threads would be available, one per CPU)

Thanks

adrienlucca.wordpress.com

Posted 2015-10-24T14:19:23.393

Reputation: 103

just in case it matters, what OS? Why not benchmark it? – Journeyman Geek – 2015-10-24T14:23:29.130

2No; It would not make it faster. You could disable the other core and it would run at identical speeds because your only using one core in the first place. Determine the reason your only using one core, it should be possible, for your python code to use all your cores. – Ramhound – 2015-10-24T14:44:10.240

@Ramhound well there is no apparent reason, any 32bit program - as far as I experienced - always use only one thread at a time. Have you ever seen a counterexample? – adrienlucca.wordpress.com – 2015-10-24T18:43:58.013

I can write a multi-threaded 32-bit application in 200 lines of code, don't know Python, so it would be c# – Ramhound – 2015-10-24T23:52:41.940

@adrienlucca.wordpress.com We were running multithreaded 32-bit programs long before 64-bit even existed for PCs. I've written many such. There is nothing about multithreading that needs 64 bits. – Jamie Hanrahan – 2018-10-30T05:09:47.277

No answers