News for hackers. Stuff that matters.
Re:R beats Python, R beats Julia, Anyone else wanna challeng... by bwood on Thursday May 22, 2014 @06:25PM (#7786930)
Using multiprocessing in Python is more complicated because each process has a separate memory space and interprocess communication can be quite expensive. If you don't carefully design your communication patterns, any performance you expect to gain by using multiple cores can easily be lost.
Re:R beats Python, R beats Julia, Anyone else wanna challeng... by influx on Thursday May 22, 2014 @07:28PM (#7787216)
You'd be mistaken to think just because you share memory space that you don't have to think about or design around the same issues with threads. The main issue I've ran into with multiprocessing is objects that are unpickleable, otherwise, it's pretty transparent usually.
Re:R beats Python, R beats Julia, Anyone else wanna challeng... by bwood on Thursday May 22, 2014 @07:47PM (#7787283)
That's interesting, what sort of communication issues have you run into with threading? I've always found it to be mostly a non-issue since you can use global variables or just pass along a reference.