I'd like to make Rust respect to max worker count in config, since it now runs parallel code. Right now, it uses every CPU available, be it logical or physical.

I think the simplest way to do so, since Rust does not yet know how to read the config file, is to set the RAYON_NUM_THREADS environment variable in the Python layer as soon as possible.

I'm unsure where to do it though and what the implications are cross-platform. Maybe as soon as the config is loaded?

Thanks,

Raphaël

_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to