python shutting down sloooooooowly/tuning dictionaries

Fredrik Lundh fredrik at pythonware.com
Wed Apr 21 12:48:00 EDT 2004


Till Plewe wrote:

> Since the entire database is too large I typically run the same
> program 10-100 times on smaller parts. The annoying bit is that the
> time for finishing one instance of a program before starting the next
> instance can take a lot of time.  I have started using a shell script to
> check whether certain files have been written and then kill the
> program from the os to speed up everything. But this solution is way
> too ugly. There should be a better way, but I don't seem to be able to
> find one.

have you tried using

    os._exit()

instead of sys.exit()

</F>







More information about the Python-list mailing list