leezu commented on issue #17495: Initial inspections for singleton thread safety in MXNet URL: https://github.com/apache/incubator-mxnet/issues/17495#issuecomment-589460965 @eric-haibin-lin I raised the question on the Python Bug Tracker. Python maintainers recommend to refactor MXNet to make state management pluggable / customizable. Adding callbacks to contextvars is infeasible: > For extra context: context switches occur on every callback invocation in asyncio and there can be thousands of them per seconds (or even more). Adding any extra code to context switching code will noticeably degrade the performance. Reference: https://bugs.python.org/issue39660#msg362370
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services