Macchina-CLI / libmacchina

A library providing access to all sorts of system information.
https://crates.io/crates/libmacchina
MIT License
68 stars 20 forks source link

Improve Scoop package count performance #113

Closed FantasyTeddy closed 2 years ago

FantasyTeddy commented 2 years ago

As discussed in #107 I refactored the Scoop package count by using the SCOOP environment variable if available, or the default path C:\Users\<user>\scoop.

I am happy to say that this improved performance: Note Mean [ms] Min [ms] Max [ms]
Before this PR 54.5 ± 7.6 50.6 104.5
PR without Scoop installed 43.0 ± 0.9 39.9 45.1
PR with Scoop installed 43.5 ± 0.9 41.5 46.3
grtcdr commented 2 years ago

Thank you Teddy :)