Skip to content

Commit

Permalink
Speed up Plugin::is_blueprint_master()
Browse files Browse the repository at this point in the history
Failing faster improved load() results for Fallout 4 by 8% for 500 plugins and 14% for 1500 plugins.
  • Loading branch information
Ortham committed Oct 7, 2024
1 parent b40c971 commit bc47734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ impl Plugin {
}

pub fn is_blueprint_master(&self) -> bool {
self.is_master_file() && self.data.is_blueprint_plugin()
self.data.is_blueprint_plugin() && self.is_master_file()
}

pub fn masters(&self) -> Result<Vec<String>, Error> {
Expand Down

0 comments on commit bc47734

Please sign in to comment.