Skip to content

[BUG] Literal _rq performs conversion of string literal in runtime instead of compile time #288

@benruijl

Description

@benruijl

I expect the performance of the quad prec literal NUM_rq to have the same performance of doing real128(NUM.q), however it is much slower. Running perf on some sample code shows that the conversion from string to __float128 is not happening at compile time as seems to be the case with .q, but occurs at runtime:
strtoflt128

When I use real128(NUM.q), there is no function call to strtofloat:
nostringconv

Changing from _rq to .q made my code about 1.5 times faster.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions