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

Massive size increase between bc5897e and ac07e73? <3mb to >10mb #196

Closed
Darthagnon opened this issue Oct 28, 2023 · 3 comments
Closed

Massive size increase between bc5897e and ac07e73? <3mb to >10mb #196

Darthagnon opened this issue Oct 28, 2023 · 3 comments

Comments

@Darthagnon
Copy link
Contributor

Older versions of OpenHashTab were tiny, e.g. ac07e73 was 4.11mb, v3.0.2 was 2.96mb, then newer versions dropped features like 32-bit support and also massively increased in size, e.g. bc5897e was 10.2mb and all the latest versions v3.0.3 and up are also 10.2mb, while threatening to drop features like old Windows support.

I know it's still a tiny program, but why is it increasing almost 350% in size while dropping older Windows versions and 32bit processors? Seems counter-intuitive, less features should mean smaller size.

@namazso
Copy link
Owner

namazso commented Oct 28, 2023

There are two major contributors to size:

  • PDBs (debug information) that I include so that anyone can debug crashes of the released builds, without rebuilding it themselves
  • Static linked CRT. This means a large part of the C runtime is linked into every dll and exe. This is so that people don't have to manually install the Visual C++ runtime. I could shave that off, resulting in much smaller binaries, but then I'd have to include the VC redistributable installer (25 MB), ultimately increasing the bundle size.

@Darthagnon
Copy link
Contributor Author

Thank you very much for the info!

@mooms06
Copy link

mooms06 commented Aug 1, 2024

  • but then I'd have to include the VC redistributable installer (25 MB), ultimately increasing the bundle size.

You could make the installer download/open a page to download them if they're not installed, but most systems already have those installed. I personally use @abbodi1406 repack: https://github.com/abbodi1406/vcredist

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