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

Add compile optimizations #24

Closed
pablodav opened this issue Jun 13, 2018 · 1 comment
Closed

Add compile optimizations #24

pablodav opened this issue Jun 13, 2018 · 1 comment
Assignees
Milestone

Comments

@pablodav
Copy link
Contributor

@deajan
You have added this:

https://github.com/grke/burp/wiki/Performance-Tips#optional-compile-time-improvements

When compiling burp, you can optimize it for your actual processor architecture, and add a certain degree of parallelism that will give a little performance improvement (expect 5%).
Add the following CFLAGS to your configure statement

CFLAGS="-O2 -march=native -mtune=native -mfpmath=sse -floop-parallelize-all -ftree-parallelize-loops=4" ./configure

Be aware that using -march and -mtune will make your compiled burp work only with the actual processor you compiled with. Omit those parameters if you want to compile for other cpus.

This role compliles burp so I think it could help on default compilation.

What do you think?
Should I add these compile commands to the role?

@deajan
Copy link
Contributor

deajan commented Jun 15, 2018

As long as you compile burp on each host, you're fine with -march and -mtune.
If you happen to compile a central burp and distribute it, leave those both options out.
The other options should always work, unless you have a non SMP kernel which shouldn't be the case since at least 10 years :)

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

No branches or pull requests

2 participants