Remove unnecessary Lazy initialization from PluginFile.State
in PluginFile.cs
#13865
Labels
Area:Plugin
V2 plugin w/ cross platform support
Priority:3
Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog.
Type:DCR
Design Change Request
The
PluginFile
class currently uses aLazy<PluginFileState>
for itsState
property:This was originally implemented because we used to perform Authenticode verification on plugins on Windows, which was an expensive operation. The
Lazy
initialization ensured that this verification was deferred until necessary.However, since PR #6042 has been merged, we no longer perform Authenticode verification on plugins. Therefore, the
Lazy
initialization is no longer needed.The text was updated successfully, but these errors were encountered: