-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
I wonder why these are needed:
rsgridsynth/src/diophantine.rs
Lines 119 to 122 in 7cfea4f
| static TWO: Lazy<IBig> = Lazy::new(|| IBig::from(2)); | |
| static ONE: Lazy<IBig> = Lazy::new(|| IBig::ONE); | |
| if n <= *ONE { |
Is it because IBig::ONE looks like a constant, but is actually recomputed when accessed?
If so, there are many more of these in static data, for example in rings.rs that may also benefit
from caching.
Metadata
Metadata
Assignees
Labels
No labels