PsIni icon indicating copy to clipboard operation
PsIni copied to clipboard

[Fix] Improve performance by operating in-memory

Open HighPriest opened this issue 1 year ago • 1 comments

This commit replaces all the Out-File operations, with a list of strings to write at the end of programs (Export) execution.

All previous functionality, like "Encoding", "Appending", "Format", etc. are handled.

Improved execution time on a database of 1000files, from 284.7797556seconds to 58.9908463seconds (Almost 3x improvement)

HighPriest avatar Oct 08 '24 23:10 HighPriest

Have to be honest, I don't have the entire powershell development environment setup (addition of CONTRIBUTING.md would be useful), so I did not run the included tests.

Only tested the script for my workflow & the output is perfect. Including comments, adding things by hand, etc.

HighPriest avatar Oct 08 '24 23:10 HighPriest

Sorry for the delay.
I forgot to push my things, but was still waiting for a review 🤪

HighPriest avatar Mar 18 '25 19:03 HighPriest