Easton Man's Channel
22:12 · Apr 12, 2023 · Wed
Daniel Lemire's blog
Consider using constexpr static function variables for performance in C++
Telegraph
|
source
Telegraph
Consider using constexpr static function variables for perfo…
When programming, we often need constant variables that are used within a single function. For example, you may want to look up characters from a table. The following function is efficient: char table(int idx) { const char array[] = {'z', 'b', 'k', 'd'};…
Home
Powered by
BroadcastChannel
&
Sepia