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

Change VLA code by using std::vector #787

Merged
merged 1 commit into from
Nov 5, 2024
Merged

Change VLA code by using std::vector #787

merged 1 commit into from
Nov 5, 2024

Conversation

dudoslav
Copy link
Contributor

@dudoslav dudoslav commented Nov 4, 2024

In order to fix an issue with newer compilers we have to remove any usage of VLA from VCF code. I am not sure how this changes the performance of the code, but for now I decided to use std::vector. If we could bound the size of the array we could use std::array and have the memory allocated on stack.

TileDB-Inc/tiledb-vcf-feedstock#141 (comment)

@dudoslav dudoslav requested review from ihnorton and gspowley November 4, 2024 11:02
@dudoslav dudoslav self-assigned this Nov 4, 2024
Copy link
Member

@gspowley gspowley left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @dudoslav!

I expect the performance overhead will be low because the number of elements allocated will be very small.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants