[Subject Prev][Subject Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hts-users:01158] 回复: Re: the speed of making unseen models


blow is the results of HHEd running time via gprof
 
Each sample counts as 0.01 seconds.
  %   cumulative   self              self     total          
 time   seconds   seconds    calls  ms/call  ms/call  name   
 14.29      0.65     0.65                             Untouch
 11.43      1.17     0.52                             GetCh
  9.01      1.58     0.41                             UntouchV
  8.79      1.98     0.40                             ReadString
  4.84      2.20     0.22                             GetLabId
  4.62      2.41     0.21                             ClearSeenFlags
  4.40      2.61     0.20                             GoNextHMM
  4.18      2.80     0.19                             FindMacroName
  3.96      2.98     0.18                             ClearStreams
  3.52      3.14     0.16                             GetToken
  2.86      3.27     0.13                             GoNextState
  2.86      3.40     0.13                             Hash
  2.20      3.50     0.10                             GetStream
  1.98      3.59     0.09                             fgetc
  1.76      3.67     0.08     5497     0.01     0.01  GetNode
  1.76      3.75     0.08                             GoNextStream
  1.76      3.83     0.08                             LoadHMMSet
  1.54      3.90     0.07                             GetStreamInfo
  1.54      3.97     0.07                             SaveHMMSet
  1.10      4.02     0.05                             GetStateInfo
  1.10      4.07     0.05                             RawReadShort
  0.88      4.11     0.04        1    40.00    40.00  CompactCommand
  0.66      4.14     0.03        1    30.00    30.00  PurgeMacros
  0.66      4.17     0.03                             FindMacroStruct
  0.66      4.20     0.03                             GetStructure
  0.66      4.23     0.03                             IsSeen
  0.66      4.26     0.03                             New
  0.66      4.29     0.03                             ResetHooks
  0.44      4.31     0.02                             InitShell
  0.44      4.33     0.02                             MaxMixtures
  0.44      4.35     0.02                             ReadShort
  0.22      4.36     0.01        2     5.00    45.00  LoadTreesCommand
  0.22      4.37     0.01        1    10.00    10.00  SwapLists
  0.22      4.38     0.01                             CreateHMM
  0.22      4.39     0.01                             CreateSVector
  0.22      4.40     0.01                             FixOrphanMacros
  0.22      4.41     0.01                             GetHMMDef
  0.22      4.42     0.01                             GetMean
  0.22      4.43     0.01                             GetTransMat
  0.22      4.44     0.01                             GoNextMix
  0.22      4.45     0.01                             InitHMMSet
  0.22      4.46     0.01                             MRound
  0.22      4.47     0.01                             MaxMixInSet
  0.22      4.48     0.01                             MaxStatesInSet
  0.22      4.49     0.01                             PutMean
  0.22      4.50     0.01                             ReadVector
  0.22      4.51     0.01                             SaveInOneFile
  0.22      4.52     0.01                             SetIndexes
  0.22      4.53     0.01                             SkipWhiteSpace
  0.22      4.54     0.01                             VectorSize
  0.22      4.55     0.01                             WriteFloat
  0.00      4.55     0.00    11004     0.00     0.00  CreateTreeNode
  0.00      4.55     0.00     7511     0.00     0.00  EquivHMM
  0.00      4.55     0.00     1236     0.00     0.00  ParseAlpha
  0.00      4.55     0.00      745     0.00     0.00  LoadQuestion
  0.00      4.55     0.00      472     0.00     0.00  EquivStream
  0.00      4.55     0.00      417     0.00     0.00  ParsePattern
  0.00      4.55     0.00      410     0.00     0.00  EquivState
  0.00      4.55     0.00      377     0.00     0.00  EquivMix
  0.00      4.55     0.00       10     0.00     0.00  CreateTree
  0.00      4.55     0.00       10     0.00     8.00  LoadTree
  0.00      4.55     0.00        9     0.00     0.00  CmdIndex
  0.00      4.55     0.00        4     0.00     0.00  ChkedAlpha
  0.00      4.55     0.00        4     0.00     0.00  CommentCommand
  0.00      4.55     0.00        1     0.00    10.00  AddUnseenCommand
  0.00      4.55     0.00        1     0.00     0.00  ChkedInt
  0.00      4.55     0.00        1     0.00   170.00  DoEdit
  0.00      4.55     0.00        1     0.00     0.00  Initialise
  0.00      4.55     0.00        1     0.00     0.00  SetConfParms
  0.00      4.55     0.00        1     0.00     0.00  SetTraceCommand
  0.00      4.55     0.00        1     0.00     0.00  TreeFilter
 
 the total time is 4.55,right?is that time different under windows from linux?

"Heiga ZEN (Byung Ha CHUN)" <zen@xxxxxxxxxxxxxxx> 写道:
Hi,

Umud wrote (2008/02/07 18:55):

> Hi,all. i found that it took much time to make unseen models with HHEd.
> I read the HHEd source code and try to reduce the speed of making unseen
> models by using multithreading. does it make any help?any other tips on
> reducing the time consuming?thanks.

Can you show us which C function consumes the computational cost?
If you're using Linux, you can see it via gprof.

Regards,

Heiga ZEN (Byung Ha CHUN)

--
------------------------------------------------
Heiga ZEN (in Japanese pronunciation)
Byung Ha CHUN (in Korean pronunciation)

Department of Computer Science and Engineering
Nagoya Institute of Technology
Gokiso-cho, Showa-ku, Nagoya 466-8555 Japan

http://www.sp.nitech.ac.jp/~zen
------------------------------------------------



雅虎邮箱传递新年祝福,个性贺卡送亲朋!
Follow-Ups
[hts-users:01160] Re: the speed of making unseen models, Heiga ZEN (Byung Ha CHUN)
References
[hts-users:01156] Re: the speed of making unseen models, Heiga ZEN (Byung Ha CHUN)