Changeset 2140 for trunk/symbol_table


Ignore:
Timestamp:
May 23, 2012, 4:14:46 PM (7 years ago)
Author:
ksherdy
Message:

Fixed template.

Location:
trunk/symbol_table
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/symbol_table/main_template.cpp

    r2134 r2140  
    125125    ///////////////////////////////////////////////////////////////////////////
    126126    while (chars_avail >= SEGMENT_SIZE) {
    127 cout << "A" << endl;
    128127        uint32_t blk;
    129128        for(blk=0;blk<SEGMENT_BLOCKS;blk++) {
     
    134133    }
    135134
    136 cout << "B" << endl;
    137 
    138135    for(int blk=0;blk<SEGMENT_BLOCKS;blk++) {   // write contiguous bit streams
    139136        h0[blk] = hash[blk].h0;
     
    147144    PERF_SEC_END(parser_timer, SEGMENT_SIZE);
    148145
    149 cout << "C" << endl;
    150 
    151146    COPY_BACK_BYTE_BUFFER(COPYBACK, src_buffer);
    152147    COPY_BACK_BITBLOCK_BUFFER(COPYBACK_h0,h0);
     
    155150    COPY_BACK_BITBLOCK_BUFFER(COPYBACK_follows_0,follows_0);
    156151
    157 cout << "D" << endl;
    158 
    159152    is.read ((char *)(src_buffer), SEGMENT_SIZE);
    160153    chars_avail = is.gcount();
    161 
    162 cout << "E" << endl;
    163154
    164155    #ifdef IDENTITY_TEST
     
    183174    #endif
    184175    }
    185 
    186 cout << "F" << endl;
    187176
    188177    /* Resolve Partial Segments */
     
    214203    }
    215204
    216 cout << "G" << endl;
    217 
    218205    uint32_t segment_blocks = blk;
    219206    for(int blk=0;blk<segment_blocks;blk++) { // write contiguous hash bit streams
     
    224211    }
    225212
    226 cout << "H" << endl;
    227 cout << segment_blocks << endl;
    228213    // PERF_SEC_BIND(0);
    229214    PERF_SEC_START(parser_timer);
    230215    st.resolve(src_buffer, groups, starts, follows_0, h0, h1, segment_blocks, gids);
    231216    PERF_SEC_END(parser_timer, chars_avail);
    232 
    233 cout << "I" << endl;
    234217
    235218    #ifdef IDENTITY_TEST
  • trunk/symbol_table/src/buffer.hpp

    r2139 r2140  
    1111#define PADDING_BLOCKS 0
    1212#define PADDING_SIZE (BLOCK_SIZE * PADDING_BLOCKS)
    13 #define COPYBACK_BLOCKS 1
     13#define COPYBACK_BLOCKS 10
    1414#define COPYBACK_SIZE (BLOCK_SIZE * COPYBACK_BLOCKS)
    15 #define SEGMENT_BLOCKS  15
     15#define SEGMENT_BLOCKS  1000
    1616#define SEGMENT_SIZE (BLOCK_SIZE * SEGMENT_BLOCKS)
    1717#define BUFFER_SIZE (COPYBACK_SIZE + SEGMENT_SIZE + PADDING_SIZE)
  • trunk/symbol_table/src/symbol_table.hpp

    r2134 r2140  
    100100
    101101                        for(uint32_t blk = 0; blk < segment_blocks; blk++) {
    102 cout << blk << endl;
    103102                                const uint32_t blk_offset = blk * BLOCK_SIZE;
    104103                                resolve(blk_offset, &buffer[blk_offset], groups[blk], &starts[blk], &h0[blk], &h1[blk], gids);
Note: See TracChangeset for help on using the changeset viewer.