GNU TeXmacs - Bugs: bug #37111, Searching the docs is too slow.
You are not allowed to post comments on this tracker with your current authentication level.
bug #37111: Searching the docs is too slow.
Submitter: | Miguel de Benito <mdbenito> | ||
Submitted: | Wed 15 Aug 2012 05:36:37 PM UTC | ||
Category: | Documentation | Priority: | 5 - Normal |
Item Group: | Wishlist | Status: | Fixed |
Privacy: | Public | Assigned to: | mdbenito |
Originator Name: | Open/Closed: | Closed | |
Release: | None | Release: | svn r6236 |
Fixed Release: | None | Fixed Release: | |
Keywords: |
Thu 07 Feb 2013 01:58:37 AM UTC, comment #1: |
Miguel de Benito <mdbenito> |
Wed 15 Aug 2012 05:36:37 PM UTC, original submission:
Just that. If it's greping through the documentation, then is too slow. Easiest would be to simply load all of it into memory (currently about 7MB) and search there. If that's already what's being done, then some indices are needed. |
Miguel de Benito <mdbenito> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 4 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2013-02-07 | mdbenito | Status | None | Fixed | |
Assigned to | None | mdbenito | |||
Open/Closed | Open | Closed | |||
Release | svn r6236 |
Powered by Savane 3.13-758e.
Corresponding source code
Turns out all loading of files is done via load_string, which caches the files, but the traversal of the directory structure was getting forever. Having cached these results a few commits ago, searches after the first one are much faster now.
We might want to use persistent storage for the result of directory traversal, but this could be inconvenient while developing, because files added wouldn't get noticed until the persistent cache was updated...