Changeset 156
- Timestamp:
- 06/08/10 11:49:59 (3 years ago)
- File:
-
- 1 edited
-
trunk/src/blosc.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/blosc.c
r155 r156 634 634 635 635 if (*flags & BLOSC_MEMCPYED) { 636 if ((nbytes > 64*KB) || (nthreads > 1)) { 637 /* More effective in multi-core processors or large buffers */ 636 if (((nbytes % L1) == 0) || (nthreads > 1)) { 637 /* More effective with large buffers that are multiples of the 638 cache size or multi-cores */ 638 639 params.ntbytes = BLOSC_MAX_OVERHEAD; 639 640 ntbytes = do_job(); 640 641 } 641 642 else { 642 /* More effective in single-core processors or small buffers */643 643 memcpy(dest+BLOSC_MAX_OVERHEAD, src, nbytes); 644 644 ntbytes = nbytes + BLOSC_MAX_OVERHEAD; … … 722 722 /* Check whether this buffer is memcpy'ed */ 723 723 if (flags & BLOSC_MEMCPYED) { 724 if ((nbytes > 64*KB) || (nthreads > 1)) { 725 /* More effective in multi-core processors or large buffers */ 724 if (((nbytes % L1) == 0) || (nthreads > 1)) { 725 /* More effective with large buffers that are multiples of the 726 cache size or multi-cores */ 726 727 ntbytes = do_job(); 727 728 } 728 729 else { 729 /* More effective in single-core processors or small buffers */730 730 memcpy(dest, src+BLOSC_MAX_OVERHEAD, nbytes); 731 731 ntbytes = nbytes;
Note: See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/images/blosc-logo-small.png)