Quantcast
Channel: How can I optimize these loops (with compiler optimization disabled)? - Stack Overflow
Browsing all 4 articles
Browse latest View live

Answer by gnasher729 for How can I optimize these loops (with compiler...

Before anything else, try to change compiler settings to produce faster code. There is general optimisation, and the compiler might do auto vectorisation.You would always try several approaches and...

View Article



Answer by Peter Cordes for How can I optimize these loops (with compiler...

I am reposting a modified version of my answer from optimized sum of an array of doubles in C, since that question got voted down to -5. The OP of the other question phrased it more as "what else is...

View Article

Answer by paxdiablo for How can I optimize these loops (with compiler...

You may be on the right track, though you'll need to measure it to be certain (my normal advice to measure, not guess seems a little superfluous here since the whole point of the assignment is to...

View Article

How can I optimize these loops (with compiler optimization disabled)?

I need to optimize some for loops for speed (for a school assignment) without using compiler optimization flags.Given a specific Linux server (owned by the school), a satisfactory improvement is to...

View Article
Browsing all 4 articles
Browse latest View live


Latest Images