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

Utilize --profile to improve performance of File in programkind.go #750

Open
egibs opened this issue Jan 14, 2025 · 0 comments
Open

Utilize --profile to improve performance of File in programkind.go #750

egibs opened this issue Jan 14, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@egibs
Copy link
Member

egibs commented Jan 14, 2025

While working on #734, I noticed File was one of the largest runtime hits once the other optimizations were in place.

Since we check the file type of each file, this function can be called hundreds or thousands of times during a scan. We should optimize this function (and package) as much as possible so that we spend the smallest amount of time determining file types.

@egibs egibs added the enhancement New feature or request label Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant