pybind11 slow

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2020-05-15 01:00:00 +00:00
parent ecb867e5fb
commit 00c8e4974c

View File

@@ -17801,7 +17801,10 @@ link:userland/libs/pybind11[]
https://stackoverflow.com/questions/145270/calling-c-c-from-python/60374990#60374990
pybind11 is amazingly easy to use. But it also makes your builds really slow: <<pybind11-accounts-for-50-of-gem5-build-time>>.
pybind11 is amazingly easy to use. But it can also make your builds really slow:
* <<pybind11-accounts-for-50-of-gem5-build-time>>. As mentioned there, if pybind11 would split everything that can go into a cpp file from the hpp (i.e. everything except templates) that could already significantly reduce build times in certain cases. This is discussed upstream at: https://github.com/pybind/pybind11/issues/708
* https://discuss.pytorch.org/t/how-are-python-bindings-created/46453/2
==== Node.js