tag:blogger.com,1999:blog-2797923531103204252.post4072454656691899523..comments2008-08-30T12:01:19.493+02:00Comments on Majek's technical blog: GNU pth instead of pthread: hardcore python tuning...majekhttp://www.blogger.com/profile/01251411797162710066noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-2797923531103204252.post-30497882496200921222008-08-30T12:01:00.000+02:002008-08-30T12:01:00.000+02:002008-08-30T12:01:00.000+02:00> I was browsing the Python source to> see if syst...> I was browsing the Python source to> see if system call mapping is > enabled, because if it isn't then> any I/O will block the entire> process.I only tried to avoid the futex() overhead. I never really thought about wrapping read(). But it's very interesting if this would really work.I'm not going to try it myself in near future, but I'd love to hear your results.majekhttp://www.blogger.com/profile/01251411797162710066noreply@blogger.comtag:blogger.com,1999:blog-2797923531103204252.post-41919100787420207702008-08-30T04:28:00.000+02:002008-08-30T04:28:00.000+02:002008-08-30T04:28:00.000+02:00So I know this post is old, but I am very intrigue...So I know this post is old, but I am very intrigued by this idea. Seems like a big win for Python and a very logical choice.I was browsing the Python source to see if system call mapping is enabled, because if it isn't then any I/O will block the entire process.It doesn't appear to be enabled. Since you have this up and running, wanna give it a shot? I'm going to try it myself soon, with the Philliphttp://www.blogger.com/profile/16123869064259434632noreply@blogger.comtag:blogger.com,1999:blog-2797923531103204252.post-52390283790962523062007-10-23T18:52:00.000+02:002007-10-23T18:52:00.000+02:002007-10-23T18:52:00.000+02:00Didn't worked for me either.Didn't worked for me either.majekhttp://www.blogger.com/profile/01251411797162710066noreply@blogger.comtag:blogger.com,1999:blog-2797923531103204252.post-42164844865360190662007-10-23T17:52:00.000+02:002007-10-23T17:52:00.000+02:002007-10-23T17:52:00.000+02:00LD_PRELOAD didn't worked ;)LD_PRELOAD didn't worked ;)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2797923531103204252.post-86276579332731549192007-10-23T14:04:00.000+02:002007-10-23T14:04:00.000+02:002007-10-23T14:04:00.000+02:00you might try something like this:LD_PRELOAD=/path...you might try something like this:LD_PRELOAD=/path/to/pth.so ./single_threaded_python_script.pySince the api is supposed to be the same, it should be possible to substitute libraries at startup-timeMaciekhttp://www.blogger.com/profile/03490171570610799479noreply@blogger.com