From 708329b85f2ecfb5434c3eba7de4523739f3da8e Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Thu, 12 Dec 2019 14:28:22 -0800 Subject: [PATCH] Updated FAQ (markdown) --- FAQ.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FAQ.md b/FAQ.md index 08077e2..dbf80e1 100644 --- a/FAQ.md +++ b/FAQ.md @@ -52,7 +52,7 @@ The syntax is slightly more verbose in that you have to explicitly convert the ` 1. Convert `Tuesday[3]/m/y` (`year_month_weekday`) to `sys_days` in order to add `days`. 2. Convert the `sys_days` to a `year_month_day`. -2 conversions. Roughly twice as fast! +2 conversions. Roughly twice as fast! And the code generation (using clang++ -O3) is roughly half the size: 152 assembly statements vs 335 assembly statements. This philosophy is similar to that which we have for containers: It would be super easy to create `vector::push_front(const T&)`. But that would make it too easy for programmers to write inefficient code. The compiler helps remind the programmer that perhaps `deque` or `list` would be a better choice when he attempts to code with `vector::push_front(const T&)`.