Changeset 2684 for trunk


Ignore:
Timestamp:
11/02/12 13:39:00 (12 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: run sdgrid and see subtables

Put in Release Notes: No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Use TableCopy::copyRows for each subtable instead to call
TableCopy::copySubTables. It improves performance of asapgrid.save.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STGrid.cpp

    r2682 r2684  
    19401940  // explicitly copy subtables since no rows including subtables are
    19411941  // copied by Table::deepCopy with noRows=True
    1942   TableCopy::copySubTables( tab, t ) ;
     1942  //TableCopy::copySubTables( tab, t ) ;
     1943  const TableRecord &inrec = t.keywordSet();
     1944  TableRecord &outrec = tab.rwKeywordSet();
     1945  for (uInt i = 0 ; i < inrec.nfields() ; i++) {
     1946    if (inrec.type(i) == TpTable) {
     1947      String name = inrec.name(i);
     1948      Table intable = inrec.asTable(name);
     1949      Table outtable = outrec.asTable(name);
     1950      TableCopy::copyRows(outtable, intable);
     1951    }
     1952  }
    19431953}
    19441954
Note: See TracChangeset for help on using the changeset viewer.