• Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Python anyone?

bellymonster

More time posting than coding
Joined
Dec 14, 2006
Messages
297
Likes received
0
Thanks received
0
Anyone know a great deal about python?

I'm not interested to learn how to use it, more about getting it to run faster on a server I look after.

The background is that the developers have moved a system that uses python from an old server to a brand spanking 8 cpu server.

It actually runs 30% slower on the new box and they can't understand why.

Any ideas (apart 'from python is crap')?
 
What is it that is going slow?

Is it CPU activity?
Memory handling?
Disk I/O?
 
What is it that is going slow?

Is it CPU activity?
Memory handling?
Disk I/O?


The python process seems to hog 100% of just one processor, apparently it does this on the old server too. Memory and disk IO is fine.
 
Ah yes, sounds like it could be something along these lines.

Now the question is, whats the best way round it ?
(My guess is that there isn't a way round it without a complete rewrite of the code).

Apparently, if it is this GIL problem...and if you are on Windows...you can use IronPython. Don't know how much work it would take to change over.
 

Advertisers

Back
Top