Changeset 5e4636 in git


Ignore:
Timestamp:
Mar 19, 2013, 11:59:41 AM (10 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '5a0dde71de01068fad5736a17555c993ecbbf495')
Children:
2537fa05c1ccd0871a09e79dea03dd1cd5965cd7
Parents:
93e7364ff81efde654648b43b93070f1ff358dfe
git-author:
Martin Lee <martinlee84@web.de>2013-03-19 11:59:41+01:00
git-committer:
Martin Lee <martinlee84@web.de>2013-03-22 15:52:54+01:00
Message:
chg: more timing info
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/facFqBivarUtil.cc

    r93e7364 r5e4636  
    1212
    1313#include "config.h"
     14
     15#include "timing.h"
    1416
    1517#include "cf_map.h"
     
    2830#include "facMul.h"
    2931
     32TIMING_DEFINE_PRINT(fac_log_deriv_div)
     33TIMING_DEFINE_PRINT(fac_log_deriv_mul)
     34TIMING_DEFINE_PRINT(fac_log_deriv_pre)
    3035
    3136void append (CFList& factors1, const CFList& factors2)
     
    450455  CanonicalForm logDeriv;
    451456
     457  TIMING_START (fac_log_deriv_div);
    452458  q= newtonDiv (F, G, xToL);
    453 
     459  TIMING_END_AND_PRINT (fac_log_deriv_div, "time for division in logderiv1: ");
     460
     461  TIMING_START (fac_log_deriv_mul);
    454462  logDeriv= mulMod2 (q, deriv (G, y), xToL);
     463  TIMING_END_AND_PRINT (fac_log_deriv_mul, "time to multiply in logderiv1: ");
    455464
    456465  int j= degree (logDeriv, y) + 1;
     
    480489
    481490  CanonicalForm bufF;
     491  TIMING_START (fac_log_deriv_pre);
    482492  if ((oldL > 100 && l - oldL < 50) || (oldL < 100 && l - oldL < 30))
    483493  {
     
    511521    bufF -= Up;
    512522  }
    513 
     523  TIMING_END_AND_PRINT (fac_log_deriv_pre, "time to preprocess: ");
     524
     525  TIMING_START (fac_log_deriv_div);
    514526  if (l-oldL > 0)
    515527    q= newtonDiv (bufF, G, xToLOldL);
     
    518530  q *= xToOldL;
    519531  q += oldQ;
    520 
     532  TIMING_END_AND_PRINT (fac_log_deriv_div, "time for div in logderiv2: ");
     533
     534  TIMING_START (fac_log_deriv_mul);
    521535  logDeriv= mulMod2 (q, deriv (G, y), xToL);
     536  TIMING_END_AND_PRINT (fac_log_deriv_mul, "time for mul in logderiv2: ");
    522537
    523538  int j= degree (logDeriv,y) + 1;
Note: See TracChangeset for help on using the changeset viewer.