Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 003_compiletime_vs_runtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@ The more stuff you do at compiletime (including code generation via macros or te

For example C++ ```std::sort()``` can always be faster than C ```qsort()``` because ```qsort()``` uses a runtime parameter as the comparision function, and that function is called umpteen zillion times.

The C++ sort takes a comparision object, which can be a lambda/template/inline function, which inlines its code right within the sort template function.
The C++ sort takes a comparison object, which can be a lambda/template/inline function, which inlines its code right within the sort template function.

No unnecessary function calls.