News for hackers. Stuff that matters.
Re:Speed improvements in Python 3.7 by orf on Tuesday February 13, 2018 @05:33PM (#16371482)
https://docs.python.org/3.7/library/gc.html#gc.freeze

Documentation link for anyone that is interested

Re:Speed improvements in Python 3.7 by rojoca on Tuesday February 13, 2018 @06:03PM (#16371720)
Also the source(?) of this change from instagram: https://engineering.instagram.com/copy-on-write-friendly-pyt...
Re:Speed improvements in Python 3.7 by wyldfire on Wednesday February 14, 2018 @11:26AM (#16376949)
> Also collection before a POSIX fork() call may free pages for future allocation which can cause copy-on-write too so it’s advised to disable gc in master process and freeze before fork and enable gc in child process.

I guess it would be nice to know if optimizations like this are already covered in the high-level libraries like `multiprocessing`.

Re:Speed improvements in Python 3.7 by viraptor on Wednesday February 14, 2018 @02:38PM (#16378666)
They aren't / shouldn't be. This is something you need to opt into specifically because it changes behaviour. For example if you have done resource still open, calling gc.freeze will prevent it from ever cleaning up.

But web frameworks should implement it.