You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,14 +22,14 @@ if(cToStr) { // Function materialized?
22
22
*No includes. No compile-time linking. No argument type-casting. No guesswork.*
23
23
*Just run-time lookup and type-safe invocation*.
24
24
25
-
### ⚡ Performance!
25
+
### ⚡ Performance
26
26
27
27
Overhead? Practically none. **RTL**’s reflective calls — when return and argument types are known — are just a native function-pointer hop, often faster than `std::function`.
28
28
29
29
Yes — `rtl::function` is faster than `std::function`.
30
30
31
31
Microbenchmarks show reflective invocations through `rtl::function` have lower call overhead — a single, native pointer jump with no extra indirection.
32
-
Once the functions start doing real work, both perform identically — always, under all conditions.
32
+
Once the functions start doing real work, both perform identically.
0 commit comments