Hello there,
Just wanted to ask if there's a real difference between e.g. the "long" type and "int_fast64_t" in terms of execution times.
Thanks
| Thread overview | |||||||
|---|---|---|---|---|---|---|---|
|
October 08 Integer types | ||||
|---|---|---|---|---|
| ||||
Hello there, Just wanted to ask if there's a real difference between e.g. the "long" type and "int_fast64_t" in terms of execution times. Thanks | ||||
October 08 Re: Integer types | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Jared McKinnan | On Tuesday, 8 October 2024 at 15:57:24 UTC, Jared McKinnan wrote: >Hello there, Just wanted to ask if there's a real difference between e.g. the "long" type and "int_fast64_t" in terms of execution times. Thanks You need to specify your platform. In most cases, no, you won't see a difference. | |||
October 08 Re: Integer types | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Imperatorn | On Tuesday, 8 October 2024 at 16:39:26 UTC, Imperatorn wrote: >On Tuesday, 8 October 2024 at 15:57:24 UTC, Jared McKinnan wrote: >Hello there, Just wanted to ask if there's a real difference between e.g. the "long" type and "int_fast64_t" in terms of execution times. Thanks You need to specify your platform. In most cases, no, you won't see a difference. I using Windows 10 x64. | |||
October 09 Re: Integer types | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Jared McKinnan | On Tuesday, 8 October 2024 at 15:57:24 UTC, Jared McKinnan wrote: >Hello there, Just wanted to ask if there's a real difference between e.g. the "long" type and "int_fast64_t" in terms of execution times. Thanks
So you have to choose between consistency and efficiency. When you tell the compiler this choice, it implements it if it can agree with the processor. SDB@79 | |||
October 09 Re: Integer types | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Salih Dincer | On Wednesday, 9 October 2024 at 12:12:22 UTC, Salih Dincer wrote: >[...]
So you have to choose between consistency and efficiency. When you tell the compiler this choice, it implements it if it can agree with the processor. SDB@79 Thank you. That helps. | |||