bugGNU TeXmacs - Bugs: bug #30155, texmacs -q takes 23 seconds

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #30155: texmacs -q takes 23 seconds

Submitted by:  Sam Liddicott <samjam>
Submitted on:  Wed 16 Jun 2010 01:32:44 PM UTC  
 
Category: NonePriority: 5 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Originator Name: Open/Closed: Closed
Release: 1.0.7.4Release: None
Fixed Release: NoneFixed Release: 
Keywords: 

Fri 06 Apr 2012 10:09:10 PM UTC, comment #2:

This has been fixed sometime ago.

Philippe Joyez <pjoyez>
Project Member
Wed 16 Jun 2010 01:48:00 PM UTC, comment #1:

Looking in the source
trunk/src/src/System/Boot/init_texmacs.cpp:

string loc= var_eval_system ("locate bin/locate 2> /dev/null");
use_locate= (search_forwards ("bin/locate", loc) > 0);

using locate to find locate seems mighty weird; if you used git I could type git-blame and see who did it and why.

I see why you can't use "which" in case it isn't there; but I suggest that "locate --version" or "locate -V" or "locate -h" are perhaps better ways to do this.

I attach a patch

(file #20762)

Sam Liddicott <samjam>
Project Member
Wed 16 Jun 2010 01:32:44 PM UTC, original submission:

Does texmacs have to run locate everytime it starts? This takes 23 seconds on my fast machine.

Perhaps texmacs could avoid doing this unless --setup or -S is passed?

Sam Liddicott <samjam>
Project Member

 

Attached Files
file #20762:  locate-quick.patch added by samjam (581B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by pjoyez (Posted a comment)
  • -unavailable- added by samjam (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 06 Apr 2012 10:09:10 PM UTCpjoyezStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Wed 16 Jun 2010 01:48:00 PM UTCsamjamAttached File-=>Added locate-quick.patch, #20762

    Back to the top


    Powered by Savane 3.1-cleanup1