Skip to content

Commit c06915e

Browse files
committed
Add perfromance note to try_parsing
1 parent 801567b commit c06915e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/env.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ impl Environment {
5656
self
5757
}
5858

59+
/// Note: enabling `try_parsing` can reduce performance it will try and parse
60+
/// each environment variable 3 times (bool, i64, f64)
5961
pub fn try_parsing(mut self, try_parsing: bool) -> Self {
6062
self.try_parsing = try_parsing;
6163
self

0 commit comments

Comments
 (0)