Skip to content

Java: Improve performance of StaticInitializationVector. #10558

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

Merged
merged 1 commit into from
Sep 26, 2022

Conversation

aschackmull
Copy link
Contributor

As the comment suggests, it looks like ArrayUpdateConfig was meant to be value flow rather than taint flow, and this makes a big performance difference. Also, since we don't car about specific sinks, we might as well add an out-barrier on sinks for a little bit of added performance.

@aschackmull aschackmull requested a review from a team as a code owner September 23, 2022 12:42
@github-actions github-actions bot added the Java label Sep 23, 2022
@aschackmull aschackmull added the no-change-note-required This PR does not need a change note label Sep 23, 2022
Copy link
Contributor

@atorralba atorralba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the trick about the out-barrier, we probably can apply this pattern to other configurations that similarly don't care about the sink but only that it exists at least one.

@aschackmull aschackmull merged commit f4ef434 into github:main Sep 26, 2022
@aschackmull aschackmull deleted the java/static-init-vector-perf branch September 26, 2022 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Java no-change-note-required This PR does not need a change note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants