Skip to content

Performance and Correctness Improvements #9

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

H2CO3
Copy link

@H2CO3 H2CO3 commented Mar 14, 2018

There is a potentially large (O(data size)) stack allocation in BPCompare(), which caused bpcomp to crash when run on a bigger data set and number of cycles (~500 proteins, 20 000 cycles). This has been mitigated by modifying the function so that is uses std::vector for heap allocation in place of VLAs on the stack (which aren't portable/standard C++ anyway).

The Makefile has also been modified so that the compiler and the linker receives the -flto flag. Most modern C++ compilers support this flag, and it demonstrably improves the performance of the emitted code.

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.

1 participant