Tk Library Source Code

View Ticket
Login
Ticket UUID: 1056892
Title: math::statistics takes > 1 sec to load
Type: Bug Version: None
Submitter: keithv Created on: 2004-10-29 16:42:45
Subsystem: math :: statistics Assigned To: arjenmarkus
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2004-11-08 17:55:23
Resolution: None Closed By: arjenmarkus
    Closed on: 2004-11-08 10:55:23
Description:
math::statistics sources pdf_stat.tcl which calls 
Initialise-cdf-normal which "Initialise the private data for 
the normal cdf". Unfortunately, on my 700mhz machine 
this takes over 1 sec to accomplish. 

I think a lot more people are interested in doing 
standard deviations and means than in pdf-exponential, 
and so I think that that expensive initialization should be 
deferred until needed.

Keith Vetter
User Comments: arjenmarkus added on 2004-11-01 17:49:49:
Logged In: YES 
user_id=400048

Fixed this. Could you please check? (The tests are okay, but
I would like a confirmation about the loading time)

arjenmarkus added on 2004-11-01 14:30:12:
Logged In: YES 
user_id=400048

Thanks for bringing this to my attention: I was not aware of
this lengthy initialisation. i suppose it could be done when
actually using the procs that require it the first time.

I will take action to improve this.