Changeset 8c5a0ad in git


Ignore:
Timestamp:
Oct 28, 1998, 7:12:55 PM (26 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'c7af8613769b29c741d6c338945669719f1fc4f8')
Children:
14ca45d33d8683584d8e75512958680e762ba286
Parents:
9b3e8cb4cfed2c8b7a5e159390b7a4b625eba3fe
Message:
*hannes: optimized gget


git-svn-id: file:///usr/local/Singular/svn/trunk@2612 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipid.cc

    r9b3e8c r8c5a0ad  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ipid.cc,v 1.23 1998-10-28 12:05:29 Singular Exp $ */
     4/* $Id: ipid.cc,v 1.24 1998-10-28 18:12:55 Singular Exp $ */
    55
    66/*
     
    5353  {
    5454    mmTestLP(IDID(h));
    55 //    id=IDID(h);
    56 //    l=IDLEV(h);
    57 //    if ((l==0) && (*(short *)s==*(short *)id) && (0 == strcmp(s+1,id+1)))
    58 //    {
    59 //      found=h;
    60 //    }
    61 //    else if ((l==lev) && (*(short *)s==*(short *)id) && (0 == strcmp(s+1,id+1)))
    62 //    {
    63 //      return h;
    64 //    } 
     55// =============================================================
     56#if 0
     57// timings: ratchwum: 515 s, wilde13: 373 s, nepomuck: 267 s, lukas 863 s
     58    id=IDID(h);
     59    l=IDLEV(h);
     60    if ((l==0) && (*(short *)s==*(short *)id) && (0 == strcmp(s+1,id+1)))
     61    {
     62      found=h;
     63    }
     64    else if ((l==lev) && (*(short *)s==*(short *)id) && (0 == strcmp(s+1,id+1)))
     65    {
     66      return h;
     67    } 
     68#endif
     69// =============================================================
     70#if 0
     71// timings: ratchwum: 515 s, wilde13: 398 s, nepomuck: 269 s, lukas 834 s
    6572    id=IDID(h);
    6673    if (*(short *)s==*(short *)id)
     
    7683      }
    7784    }
    78 //    l=IDLEV(h);
    79 //    if ((l==0)||(l==lev))
    80 //    {
    81 //      id=IDID(h);
    82 //      if (*(short *)s==*(short *)id)
    83 //      {
    84 //        if (0 == strcmp(s+1,id+1))
    85 //        {
    86 //          if (l==lev) return h;
    87 //          found=h;
    88 //        }
    89 //      }
    90 //    }
     85#endif
     86// =============================================================
     87#if 1
     88// timings: ratchwum: 501 s, wilde13: 357 s, nepomuck: 267 s, lukas 816 s
     89    l=IDLEV(h);
     90    if ((l==0)||(l==lev))
     91    {
     92      id=IDID(h);
     93      if (*(short *)s==*(short *)id)
     94      {
     95        if (0 == strcmp(s+1,id+1))
     96        {
     97          if (l==lev) return h;
     98          found=h;
     99        }
     100      }
     101    }
     102#endif
     103// =============================================================
    91104    h = IDNEXT(h);
    92105  }
Note: See TracChangeset for help on using the changeset viewer.