symforce-org / symforce

Fast symbolic computation, code generation, and nonlinear optimization for robotics
https://symforce.org
Apache License 2.0
1.44k stars 147 forks source link

[SymForce] Speed up values.cc compilation #365

Closed amiller27 closed 1 year ago

amiller27 commented 1 year ago

BY_TYPE_HELPER is taking all the time, specifically all the matrix overloads. Split them into their own code path, compiles way faster this way.

Topic: sym-values-compile-fast

amiller27 commented 1 year ago

Reviews in this chain: └https://github.com/symforce-org/symforce/pull/365 [SymForce] Speed up values.cc compilation

amiller27 commented 1 year ago
# head base diff date summary
0 9524d642 3616a56a diff Sep 27 1:04 AM 4 files changed, 377 insertions(+), 185 deletions(-)
1 aa41a8b0 3616a56a diff Oct 6 2:44 AM 1 file changed, 9 insertions(+), 3 deletions(-)
2 2c36bc67 3616a56a diff Oct 6 2:49 AM 2 files changed, 3 insertions(+), 9 deletions(-)
3 3a34072d 3616a56a diff Oct 6 2:51 AM 1 file changed, 1 insertion(+), 1 deletion(-)
4 b25a611c 3616a56a diff Oct 8 1:46 AM 3 files changed, 9 insertions(+), 1 deletion(-)
5 2c3fe398 3616a56a diff Oct 8 2:43 AM 2 files changed, 8 insertions(+), 6 deletions(-)