[gegl] random: significantly reduce memory use



commit b8235eca7fba5980d8852d449754c5ab8dfcad73
Author: Ãyvind KolÃs <pippin gimp org>
Date:   Mon Dec 17 02:49:44 2012 +1100

    random: significantly reduce memory use
    
    we still generate terabytes big space of random data on demand.

 gegl/gegl-random.c |   23 +++++------------------
 1 files changed, 5 insertions(+), 18 deletions(-)
---
diff --git a/gegl/gegl-random.c b/gegl/gegl-random.c
index 128ccbc..5360b75 100644
--- a/gegl/gegl-random.c
+++ b/gegl/gegl-random.c
@@ -22,24 +22,11 @@
 /* a set of reasonably large primes to choose from for array sizes
  */
 static long primes[]={
-  99989, 99991,100003,100019,100043,100049,100057,100069,100103,100109,
- 100129,100151,100153,100169,100183,100189,100193,100207,100213,100237,
- 100267,100271,100279,100291,100297,100313,100333,100343,100357,100361,
- 100363,100379,100391,100393,100403,100411,100417,100447,100459,100469,
- 100483,100493,100501,100511,100517,100519,100523,100537,100547,100549,
- 100559,100591,100609,100613,100621,100649,100669,100673,100693,100699,
- 100703,100733,100741,100747,100769,100787,100799,100801,100811,100823,
- 100829,100847,100853,100907,100913,100927,100931,100937,100943,100957,
- 100981,100987,100999,101009,101021,101027,101051,101063,101081,101089,
- 101107,101113,101117,101119,101141,101149,101159,101161,101173,101183,
- 101197,101203,101207,101209,101221,101267,101273,101279,101281,101287,
- 101293,101323,101333,101341,101347,101363,101377,101383,101399,101411,
- 101419,101429,101449,101467,101477,101483,101489,101501,101503,101513,
- 101527,101531,101533,101537,101561,101573,101581,101599,101603,101611,
- 101627,101641,101653,101663,101681,101693,101701,101719,101723,101737,
- 101741,101747,101749,101771,101789,101797,101807,101833,101837,101839,
- 101863,101869,101873,101879,101891,101917,101921,101929,101939,101957,
- 101963,101977,101987,101999,102001,102013,102019,102023
+14699,14713,14717,14723,14731,14737,14741,14747,14753,
+14759,14767,14771,14779,14783,14797,14813,14821,14827,
+14831,14843,14851,14867,14869,14879,14887,14891,14897,
+14923,14929,14939,14947,14951,14957,14969,14983,15013,
+15017,15031,15053,15061,15073,15077,15083,15091,15101
 };
 
 /* these primes should not exist in the above set */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]