• Matthieu Martin's avatar
    Save python import cost in folly/python get_fiber_manager · 64a6b48f
    Matthieu Martin authored
    Summary:
    Save python import cost in folly/python get_fiber_manager.
    
    In my testing, using call_once here is safe even in multi-threaded and forked environment.
    Though I wouldn't be surprised if a corner case is found in the future, as I couldn't find a definite answer about the safety of memoization Python C-API import calls.
    
    Reviewed By: fried
    
    Differential Revision: D9542909
    
    fbshipit-source-id: c62a08ebf67bd4eb82f1bf4b7657c4a3a6daf4db
    64a6b48f
CMakeLists.txt 29.2 KB