From 8cca20fa246df8e97870e13102afb928d0975370 Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Wed, 28 Sep 2016 14:12:27 -0600 Subject: [PATCH] Add link to discussion on object lifetime Closes #52 --- 08-Considering_Performance.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/08-Considering_Performance.md b/08-Considering_Performance.md index 4d0fab2..33d0db5 100644 --- a/08-Considering_Performance.md +++ b/08-Considering_Performance.md @@ -265,6 +265,8 @@ for (int i = 0; i < 15; ++i) // obj is still taking up memory for no reason ``` +[This topic has an associated discussion thread](https://github.com/lefticus/cppbestpractices/issues/52). + ### Prefer `double` to `float`, But Test First Depending on the situation and the compiler's ability to optimize, one may be faster over the other. Choosing `float` will result in lower precision and may be slower due to conversions. On vectorizable operations `float` may be faster if you are able to sacrifice precision.