Skip to content

What fields do we need? #67

@effectfully

Description

@effectfully

We use the Rational field for tests, but this is mostly for historical reasons. Rationals are not very efficient and we're not going to use them in production, so maybe we should just ditch them entirely.

On the other hand the Jubjub field is much less efficient for some reason (I guess, inversion is expensive?). And in our tests Rational is faster than even F17.

But maybe this is because we generate way too many tests involving stuff like asInteger (1/2) that just fails immediately?

This needs to be investigated.

Also F17 is too small. We should have some bigger field, like F97 just so that we can fit more tests into it (some tests in the compiler repo are disabled, because F17 is too small) while still testing overflows.

And probably we need a field of around 10^6/10^7 elements so that we can test some big expressions while retaining the efficiency of F17.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions