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

Low Level API with Pre Allocated Work Space Exposed #89

Open
RoyiAvital opened this issue Nov 26, 2023 · 1 comment
Open

Low Level API with Pre Allocated Work Space Exposed #89

RoyiAvital opened this issue Nov 26, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@RoyiAvital
Copy link

It would be great if there will be, for any function, a low level API which exposes the needed workspace to avoid any allocations of the function.

The work is impressive. Being competitive with the big guys is nothing short of amazing considering this is a single person show.

@RoyiAvital RoyiAvital added the enhancement New feature or request label Nov 26, 2023
@pnevyk
Copy link

pnevyk commented Nov 29, 2023

This is already available (and in fact, was available before the high-level API), you just need to use faer-* crates (e.g., faer-core or faer-qr) directly instead of high-level faer. Each function that needs a scratch space requires a PodStack argument and has an associated function suffixed with _req which is used for getting the scratch space size requirements of the function.

For an example, check the code snippet in the documentation for faer-qr crate.

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

No branches or pull requests

2 participants