summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Brandt <johnb0@outlook.com>2021-05-04 10:42:00 -0600
committerJohn Brandt <johnb0@outlook.com>2021-05-04 10:42:00 -0600
commitc06915e1f8ab76b53e830744b3fc7cb280c2b5e0 (patch)
tree3db287165f7de25a62699ee5cb9b39696e3d9ed3
parent801567b57fb43827723b0c46b311b60de0592ad4 (diff)
Add perfromance note to `try_parsing`
-rw-r--r--src/env.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/env.rs b/src/env.rs
index a4a917b..fd0fe52 100644
--- a/src/env.rs
+++ b/src/env.rs
@@ -56,6 +56,8 @@ impl Environment {
self
}
+ /// Note: enabling `try_parsing` can reduce performance it will try and parse
+ /// each environment variable 3 times (bool, i64, f64)
pub fn try_parsing(mut self, try_parsing: bool) -> Self {
self.try_parsing = try_parsing;
self