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

Revert "perf: benchmark improve sig GetMetadata" #4320

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

rscampos
Copy link
Contributor

Reverts #4223

Initially, we improved performance by statically defining the metadata of a signature. However, we later discovered a data race issue when a JSON library attempted to iterate over the properties of the detect.SignatureMetadata map while another goroutine was modifying the same object.

A possible future improvement would be to transform the metadata, which currently uses abstract types, into concrete types. This would allow us to statically define it without any issues.

The issues that arose after migrating the signature metadata to be static:

#4313
#4298

@rscampos rscampos merged commit 60d4176 into main Sep 23, 2024
34 checks passed
@rscampos rscampos deleted the revert-4223-sig_metadata_perfomance branch September 24, 2024 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants