Re: Cpython optimization

2009-10-23 Thread Jason Sewall
On Fri, Oct 23, 2009 at 2:31 PM, Olof Bjarnason wrote: >> > >> > This would be way to speed up things in an image processing algorithm: >> > 1. divide the image into four subimages 2. let each core process each >> > part independently 3. fix&merge (along split lines for example) into a >> > result

Re: Can I run a python program from within emacs?

2009-11-01 Thread Jason Sewall
On Sun, Nov 1, 2009 at 9:20 AM, Robinson wrote: > I have also just started with both Aquamacs and Python so I ask for your > patience as well. > When I evaluate the buffer (C-c C-C) I don't see any response or output from > my python program. Should another buffer open automatically? Should a > te

Re: faster than list.extend()

2009-11-16 Thread Jason Sewall
On Mon, Nov 16, 2009 at 6:28 PM, Raymond Hettinger wrote: > On Nov 16, 2:41 pm, Chris Rebert wrote: >> On Mon, Nov 16, 2009 at 2:30 PM, Hyunchul Kim >> >> wrote: >> > Hi, all. >> >> > I want to improve speed of following simple function. >> > Any suggestion? >> >> > ** >> > def triple(in

Re: Imitating "tail -f"

2009-11-21 Thread Jason Sewall
FWIW, GNU tail on Linux uses inotify for tail -f: http://git.savannah.gnu.org/cgit/coreutils.git/tree/src/tail.c The wikipedia page for inotify lists several python bindings: http://en.wikipedia.org/wiki/Inotify Not much help for non-Linux users, but there it is. Too bad, because inotify is pre