HomePhabricator

copies-rust: send PyBytes values back be dropped ino the parent thread

Authored by SimonSapin.

Description

copies-rust: send PyBytes values back be dropped ino the parent thread

… instead of acquiring the GIL in the Rust thread in the Drop impl

This commit is based on the premise that crossbeam-channel
with unbounded send and non-blocking receive is faster than
a contended GIL, but that remains to be measured.

Differential Revision: https://phab.mercurial-scm.org/D9686