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

Optimize binary vs. data reclassification on Linux #8148

Merged

Conversation

rokm
Copy link
Member

@rokm rokm commented Dec 6, 2023

Avoid running objdump on every file, as that becomes prohibitively costly for projects with a lot of (data) files.

First, perform a check for 4-byte ELF header to filter out most (if not all) data files; only then, validate the likely binary using objdump to ensure that it is a valid ELF file.

…tion

Before running the automatic binary-vs-data reclassification,
display an INFO message. Otherwise, the user might get an
impression that the process got stuck while loading the last
hook in (pathological) cases when reclassification takes a while.
This way, they know which part of the process to blame.
Avoid running `objdump` on every file, as that becomes prohibitively
costly for projects with a lot of (data) files.

First, perform a check for 4-byte ELF header to filter out most
(if not all) data files; only then, validate the likely binary
using `objdump` to ensure that it is a valid ELF file.
@rokm rokm merged commit 0f51fca into pyinstaller:develop Dec 7, 2023
18 checks passed
@rokm rokm deleted the optimize-linux-binary-vs-data-reclassification branch December 7, 2023 08:55
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants