-
Greetings, First I wanted to say - big thanks for such an amazing library! I already see many uses of it in the future. But right now I've hit the brick wall basically - slow compilation times. My main question is - is there something I can do to achieve reasonably compile times in "Debug/Development" mode? But again, thanks for the great work, and I'm sorry if I've missed something obvious. EDIT: Update the link to the code. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
For now, try this: #include <units/physical/si/derived/speed.h>
// #include <units/physical/si/si.h>
|
Beta Was this translation helpful? Give feedback.
-
Thank you! |
Beta Was this translation helpful? Give feedback.
-
Hi Andriy, First of all, thanks for trying out the library and sharing your experience. Yes, for now including a whole Said that we probably still have a lot of work to do to optimize compile times. I already did some optimizations based on vcperf and plan to do more. However, with the majority of work, we wait for clang to join the party of compatible compilers so we can use its great time-trace feature. |
Beta Was this translation helpful? Give feedback.
-
Thank you! I think I'll replace the library for now with raw Should we add a tip or/and warning to the users that they may encounter increased compilation time while we wait for modules? EDIT: I've compared my compile times with or without the library - with (and only required units it's 6 seconds, without it it's 4 - so I decided to try to push myself further using this library. |
Beta Was this translation helpful? Give feedback.
-
Please note that I recently added the following chapter to our docs: https://mpusz.github.io/units/framework/quantities.html#don-t-pay-for-what-you-don-t-use-compile-time-performance. |
Beta Was this translation helpful? Give feedback.
-
Relates to #7 |
Beta Was this translation helpful? Give feedback.
Please note that I recently added the following chapter to our docs: https://mpusz.github.io/units/framework/quantities.html#don-t-pay-for-what-you-don-t-use-compile-time-performance.