Re: [patch] Create TeX file lists from configure.py

2006-07-11 Thread Jean-Marc Lasgouttes
> "Bo" == Bo Peng <[EMAIL PROTECTED]> writes: >> The problem I have with this approach is that the TeXFile.py is >> rather slow. On my system, it takes 11s, whereas configure.py >> itself needs 5s. Bo> Was TeXFile.sh any faster? I do not think so. This is a deficiency of the algorithm... Bu

Re: [patch] Create TeX file lists from configure.py

2006-07-11 Thread Bo Peng
I think the speed of TeXFile.sh is irrelevant. Even for TeXFile.py, it is almost irrelevant, since we do not run configure.py often. Do you know how to use the python profiling tools? If you have python2.4, it is as easy as python -m profile TeXFile.py Otherwise, see http://docs.python.org

Re: [patch] Create TeX file lists from configure.py

2006-07-11 Thread Georg Baum
Bo Peng wrote: >> The problem I have with this approach is that the TeXFile.py is rather >> slow. On my system, it takes 11s, whereas configure.py itself needs >> 5s. On my system it is slightly faster (~8sec), but I see your concern. Nevertheless the fact that you have to go to TeX Information a

Re: [patch] Create TeX file lists from configure.py

2006-07-11 Thread Bo Peng
The problem I have with this approach is that the TeXFile.py is rather slow. On my system, it takes 11s, whereas configure.py itself needs 5s. Was TeXFile.sh any faster? My experience is that TeXFile.py is much faster on windows than TeXFile.sh, I have not compared them under linux. Bo

Re: [patch] Create TeX file lists from configure.py

2006-07-11 Thread Jean-Marc Lasgouttes
> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: Georg> It is trivial to refactor that so that we have a more Georg> meaningful argument, but first I want to know if there are any Georg> reasons not to create the lst files in configure.py. The problem I have with this approach is that the

Re: [patch] Create TeX file lists from configure.py

2006-07-11 Thread Georg Baum
Bo Peng wrote: > TeXFiles.createTeXFiles(['configure.py']) > > So ['configure.py'] is just a place holder for sys.argv[0]? Exactly. > It is kind > of confusing. It is trivial to refactor that so that we have a more meaningful argument, but first I want to know if there are any reasons not to

Re: [patch] Create TeX file lists from configure.py

2006-07-11 Thread Bo Peng
OK to go in? TeXFiles.createTeXFiles(['configure.py']) So ['configure.py'] is just a place holder for sys.argv[0]? It is kind of confusing. Bo

[patch] Create TeX file lists from configure.py

2006-07-11 Thread Georg Baum
This has just come up on the users list: Running Reconfigure does update the documernt class list from the available layouts, but it does not update the lists of bst files, cls files etc. This is not very userfriendly IMO, so I propose the attached patch. The changes to TeXFiles.py are only refacto