mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 04:39:24 +00:00
Use a Vec for the Monero generators, preventing its massive stack usage
The amount of stack usage did cause issues on m1 computers.
This commit is contained in:
@@ -44,10 +44,10 @@ fn generators(prefix: &'static str, path: &str) {
|
||||
pub(crate) static GENERATORS_CELL: OnceLock<Generators> = OnceLock::new();
|
||||
pub fn GENERATORS() -> &'static Generators {{
|
||||
GENERATORS_CELL.get_or_init(|| Generators {{
|
||||
G: [
|
||||
G: vec![
|
||||
{G_str}
|
||||
],
|
||||
H: [
|
||||
H: vec![
|
||||
{H_str}
|
||||
],
|
||||
}})
|
||||
|
||||
Reference in New Issue
Block a user