takes over 1s sometimes.. how to profile wpf apps and startup time..?
https://docs.microsoft.com/en-us/visualstudio/profiling/application-timeline?view=vs-2019 https://stackoverflow.com/a/33532790/5452781
startup time:
getting file info seems slow also,
could test this fileversioninfo https://stackoverflow.com/a/22861331/5452781
refresh layout is slower than scanning projects?
ok, vs profiler gives top list when updating project list:
allocations:
cpu usage: SetFocus to grid is slow!
loadsettings bit slow, checking and setting those checkboxes?
with 103 recent projects and 15 unity editors, typing or erasing in search field is getting sluggish.. need to look into that.
*another pc with 61 recent projects and 15 unity editors, no lag on search.
cleaning up checkbox inits:
orig:
after:
avoid calling checkbox checked setting save code at startup (#54)
remove unnecessary FindDir/DirectoryInfo scan #54
eliminated unnecessary directoryinfo scan, before:
simplified Project.ToString() override, now it disappeared from this list?
simplified Project.ToString() override (its not needed anywhere, but …
timedate converter,
if just return null ~32ms.. but cannot disable, will check later..
startup time, 160 projects and all columns (2nd launch)
if disable extra columns
splitting strings at startup?
optimize startup #54 (remove origResourceColors)
startup time (184 projects, all columns, new: srp column)
wow, dotTrace is nice! https://www.jetbrains.com/profiler/
delayed setfocustogrid:
startup time, delayed setfocustogrid:
loadsettings doing extra work.. saving settings etc?
Thanks to jetbrains opensource support, i now have dotTrace (and full jetbrains suite to help optimize this) https://github.com/unitycoder/UnityLauncherPro?tab=readme-ov-file#powered-by
dotTracing startup time
before:
startup time, 187 projects
cleanup GC in GetSRP:
Before
After
cleaning up xaml #54
takes over 1s sometimes.. how to profile wpf apps and startup time..?
https://docs.microsoft.com/en-us/visualstudio/profiling/application-timeline?view=vs-2019
https://stackoverflow.com/a/33532790/5452781