Skip to content

Commit

Permalink
Add perfromance note to try_parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
johnb8 committed May 4, 2021
1 parent 801567b commit c06915e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c06915e

Please sign in to comment.