Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

startup speed is slow. #125

Open
cmhdream opened this issue Nov 27, 2023 · 7 comments
Open

startup speed is slow. #125

cmhdream opened this issue Nov 27, 2023 · 7 comments

Comments

@cmhdream
Copy link

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@cmhdream
Copy link
Author

After the system starts, the first time I see the picture, the startup speed is slow.

@nopeless
Copy link
Contributor

@cmhdream can you upload the picture in question here

@cmhdream
Copy link
Author

@cmhdream can you upload the picture in question here

I think this is because the program is not started first when booting.
So when you click on the image to open it, the program will be loaded, so it will be slower.

@nopeless
Copy link
Contributor

@cmhdream can you upload the picture in question here

I think this is because the program is not started first when booting.
So when you click on the image to open it, the program will be loaded, so it will be slower.

I was just trying to see if there are some elements that could otherwise influence this behaviour. My best guess is that the .net runtime takes time to start + the jit compiler just needs time to convert il to machine code

in otherwords there're not many ways to fix this :/

@Ruben2776
Copy link
Owner

In the 2.2 version, I've optimized the startup procedure to load the visual elements first and the rest later, to make it feel faster.

Additionally, I'm currently working on rewriting from WPF to the Avalonia platform (and also add macOS support).
Avalonia supports Native AOT deployment, which have faster startup time and smaller memory footprints.

It will take a while to convert it, but when it's completed, you can expect a new version with smoother performance and start-up time.

@cmhdream
Copy link
Author

cmhdream commented Jan 31, 2024

PicView 2.2.1
There are indeed improvements, not the .net version.
However, compared with honeyview, the speed of starting the first picture for the first time is still slower.
But I'm still looking forward to your new version, and I'd like to thank you for noticing the questions I raised.

.net 8 version. It seems a little faster.

@Ruben2776
Copy link
Owner

There's a new preview version out, that has improved startup time, as discussed above. It's a complete rewrite, that is being actively developed.
Not all features are present in it. As soon as all featuress are implemented, this version will take precedence and the old version will be retired.

Head to https://picview.org/avalonia-download to try the new preview versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants