On Wednesday, 3 October 2018 at 21:50:49 UTC, Stanislav Blinov wrote:
Thread-local storage is memory allocated for each thread.
Only static non-immutable variables go there. Regular variables on the stack aren't explicitly placed in any TLS, they're, well, on the stack as it is.

Oh so its like thread local globals sort of. My reasoning was that stack is a form of storage and is thread local so...

Thanks for responses it became more clear what this flag does.

Quick tests with different compilers.

DMD from Arch repo compiles hello world (dmd -c main.d) in:
~0.1s
DMD compiled with DMD and stock flags
~0.12s
DMD compiled with ldc with -o2
~0.35s


DMD code gen is not that bad

Reply via email to