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

[x2cpg] Program Summary Mutable Merging #4620

Merged
merged 2 commits into from
May 30, 2024

Conversation

DavidBakerEffendi
Copy link
Collaborator

As pointed out in #4240, combining this nested immutable map-like structure has a quadratic performance, and the more performant strategy would be to use nested data-structures to merge.

For now, I've decided not to opt for a builder pattern, but rather keep the underlying structure mutable, and accessor methods return immutable structures.

As pointed out in #4240, combining this nested immutable map-like structure has a quadratic performance, and the more performant strategy would be to use nested data-structures to merge.

For now, I've decided not to opt for a builder pattern, but rather keep the underlying structure mutable, and accessor methods return immutable structures.
As pointed out in #4240, combining this nested immutable map-like structure has a quadratic performance, and the more performant strategy would be to use nested data-structures to merge.

For now, I've decided not to opt for a builder pattern, but rather keep the underlying structure mutable, and accessor methods return immutable structures.
@DavidBakerEffendi DavidBakerEffendi added the ruby Relates to rubysrc2cpg label May 30, 2024
@DavidBakerEffendi DavidBakerEffendi self-assigned this May 30, 2024
@DavidBakerEffendi DavidBakerEffendi merged commit d13bdb3 into master May 30, 2024
5 checks passed
@DavidBakerEffendi DavidBakerEffendi deleted the dave/x2cpg/mutable-summary-merging branch May 30, 2024 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ruby Relates to rubysrc2cpg
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants