These are chat archives for symengine/symengine

13th
Jul 2015
Ondřej Čertík
@certik
Jul 13 2015 04:10
@isuruf yeah, dictionary and lists have Python overhead.
Isuru Fernando
@isuruf
Jul 13 2015 04:59
Is there a better way?
Ondřej Čertík
@certik
Jul 13 2015 05:40
I looked at the C code --- it's already close to optimal --- the if statements are pure C statements and just call our fast get type function. If we want to improve it, we can register the Python bodies of the if statements as C callbacks into a C array and just call the right one (i.e. single dispatch). It's probably too much work with unclear speed benefit.
Isuru Fernando
@isuruf
Jul 13 2015 05:41
We could remove the cost of virtual functions by comparing the enum.
C callbacks would be too much work and make the code more complex
Ondřej Čertík
@certik
Jul 13 2015 15:48
Right.
Isuru Fernando
@isuruf
Jul 13 2015 17:04
Should we test that SymEngine::RCP builds on Debug mode? Now all the Debug builds use Teuchos::RCP