Skip to content

Commit deeb372

Browse files
committed
adjusts extensive mode description
1 parent b7b302c commit deeb372

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

libcxx/docs/Hardening.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ modes are:
2222
used in production. We recommend most projects to adopt the fast mode.
2323
- **Extensive mode**, which contains all the checks from the fast mode and
2424
some additional checks for undefined behavior that incur relatively little
25-
overhead but aren't security-critical. While the performance penalty is
26-
somewhat more significant compared to the fast mode, the extensive mode is
27-
still intended for use in production builds.
25+
overhead but aren't security-critical. Production builds requiring a broader
26+
set of checks than fast mode should consider enabling extensive mode. The
27+
additional rigour impacts performance more than fast mode: we recommend
28+
benchmarking to determine if that is acceptable for your program.
2829
- **Debug mode**, which enables all the available checks in the library,
2930
including internal assertions, some of which might be very expensive. This
3031
mode is intended to be used for testing, not in production.

0 commit comments

Comments
 (0)