Hi Bob.

bobeob wrote on 2016-08-12 05:11:
> Hi, I'm just wondering how I might speed up my code with little or no
> effort!
> Do class fields marked as read-only improve performance?

I have never used classes, so I have no idea:-)

> Might I get faster code by merging all my modules into one big file?

Yes; it might. I have seen speed-ups of 20-30 % for some applications.
We have an experimental tool "scmc" that compiles a modularized program as one
generated file with all non-reachable functions removed
(but there may not be any name clashes between modules).
If interested, I can share the tool.

Can you provide some details?
- lines of code
- architecture (ABI: i386, x86-64, x32)
- C compiler
- typical run time of your application
- heap usage
- threading libraries or none

Ciao
Sven

Reply via email to