Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Macro to unroll fast printing #81

Open
GabrielKS opened this issue Jan 16, 2025 · 0 comments
Open

Macro to unroll fast printing #81

GabrielKS opened this issue Jan 16, 2025 · 0 comments

Comments

@GabrielKS
Copy link
Contributor

GabrielKS commented Jan 16, 2025

Currently we have lots of manually unrolled blocks like this:

fastprintdelim(io, IC)
fastprintdelim(io, SBASE)
fastprintdelim(io, REV)
fastprintdelim(io, XFRRAT)
fastprintdelim(io, NXFRAT)
fastprintln(io, BASFRQ)

because things like this were thought to be insufficiently performant in a tight loop:

joinln(io, (IC, SBASE, REV, XFRRAT, NXFRAT, BASFRQ)) # Tuple to avoid type promotion

. The current situation is kind of messy, though. Assuming that the unrolling is actually useful for performance, I'd like to create a macro that does the same thing.

See 465e92f where the manual unrolling was implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant