You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
In PSConfiguration.cs, WriteValueToFile() should check if value has changed before writing #8325
Currently, the WriteValueToFile() method always writes to the config file even if the value didn't change. We could add logic to check if the value has changed before writing to the file.
That means WriteValueToFile() need to read the data and do the comparison, which possibly has already done by the code calling WriteValueToFile. If it's a scenario that we care to skip a write when the value is the same, such as experimental feature changes, I think the check should happen before calling WriteValueToFile.
Activity
daxian-dbw commentedon Dec 3, 2018
That means
WriteValueToFile()need to read the data and do the comparison, which possibly has already done by the code callingWriteValueToFile. If it's a scenario that we care to skip a write when the value is the same, such as experimental feature changes, I think the check should happen before callingWriteValueToFile.SteveL-MSFT commentedon Dec 5, 2018
This was addressed in #8318 agreeing to check before calling
WriteValueToFile()