Changeset 62


Ignore:
Timestamp:
04/27/10 08:37:08 (3 years ago)
Author:
faltet
Message:

An slightly improved computation for the blocksize.

Location:
branches/threaded/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/threaded/src/bench.c

    r61 r62  
    144144  unsigned int elsize = 8;        /* Datatype size */ 
    145145  int rshift = 12;                /* For random data */ 
    146   int nthreads = 2;               /* The number of threads */ 
     146  int nthreads = 4;               /* The number of threads */ 
    147147  int doshuffle = 1;              /* Shuffle? */ 
    148148  unsigned char *orig, *round; 
  • branches/threaded/src/blosc.c

    r61 r62  
    2828 
    2929/* Starting point for the blocksize computation */ 
    30 #define BLOCKSIZE (4*1024)      /* 4 KB (page size) */ 
     30#define BLOCKSIZE (2*1024) 
    3131 
    3232/* Maximum typesize before considering buffer as a stream of bytes. */ 
     
    192192  blocksize = BLOCKSIZE; 
    193193  /* 3 first optimization levels will not change blocksize */ 
    194   for (i=4; i<=(unsigned int)clevel; i++) { 
     194  for (i=2; i<=(unsigned int)clevel; i++) { 
    195195    /* Escape if blocksize grows more than nbytes */ 
    196196    if (blocksize*2 > nbytes) break; 
Note: See TracChangeset for help on using the changeset viewer.