Skip to content

[Performance Bug] Bytecode caching in vnext uses brokered APIs to check file properties. #2806

@stecrain

Description

@stecrain

UwpScriptStore and UwpPreparedScriptStore are using brokered (cross-process) Apis to check file properties.

These classes were introduced in PR #2653

This issue is to investigate using in-process APIs available to UWPs to get the file properties.
Really we are only interested in the last write time.

On Xbox this is a 300ms Launch penalty.

Looking in WPA even with samples it is pretty clear to see this happening.
image

I believe we should be able to use some form of GetFileAttributes to reduce the cost of checking the file write times.

https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getfileattributesexa

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions