#1015 "Automatically load included files" option

None
wont-fix
nobody
None
1
2014-07-03
2014-06-21
hair-splitter
No

I use TXS 2.8 + Win 8.1 (64).
I am editing a big tex source (main file + sub files), which contains a lot of cross-references (more then 100), so I use in TXS the option: "Automatically load included files". My problem is the next:
When I load the main file in the TXS, then the CPU usage jumps to 90-95%. If I delete the option "Automatically load included files", this bug there isn't.

Discussion

  • Tim Hoffmann
    Tim Hoffmann
    2014-06-22

    This is not necessarily a bug. When the option is set, TXS analyzes the complete tex source. This is significant work for large documents.

    How long does it take for the CPU to fall back to idle? What processor are you using. Can you provide your tex source so that we can test with it (if necessary we can agree on a non-public transfer)?

     
  • hair-splitter
    hair-splitter
    2014-06-22

    CPU: Intel(R) Core(TM) i5-4200U CPU @ 1.60GHz 2.30 GHz
    RAM: 4 GB

    After loading the CPU to fall back to idle in 10-15 sec, but when I start to typing, then the CPU usage jumps up again. So the typing slow and hesitating.

    If you need, I send the source on a non-public way.

     
  • Tim Hoffmann
    Tim Hoffmann
    2014-06-22

    You can send it to thoffmann@texstudio.org.

     
  • I have looked at the files.
    I don't see erroneous cpu activity, though it is high at times.
    There are some things to consider:
    1) do you use syntax checking ?
    If yes, you can't put the usepackage commands in a style-file in the work directory because txs can't scan it there (it is not a package anyway)
    If you rename it to ....tex and include by using an "input/include", txs can read it and use that information to detect your self-defined environments correctly.
    2) there a lot of math entries using $.
    If you add another $ within the text, the limit of math sections is changed and all syntax highlighting has to be redone for the whole document.
    This is probably cpu expensive ...

    Jan

     
  • hair-splitter
    hair-splitter
    2014-06-24

    Thank you the help.
    If I turn off the option "Syntax", the CPU activity is normal.
    Using "Syntax" and "Automatically load included files" together cause high CPU activity on my PC.

     
  • If you use the style file, many lines will be marked.
    With the include, things look better.
    Whether that helps with the cpu activity, probably not.

     
  • hair-splitter
    hair-splitter
    2014-06-24

    I have changed the.sty to .tex and \usepackage to \input, but it not helps. Only if I turn off "Syntax", will be normal CPU activity.

     
  • out of curiosity: you said that typing was sluggish.
    Where do you type what. Is it sluggish in all documents ? in all places ?

     
  • hair-splitter
    hair-splitter
    2014-06-24

    It is interesting, only in the line of \include{}.

     
  • which in include ? in the main file ?

     
  • hair-splitter
    hair-splitter
    2014-06-24

    Yes, in the main file.

     
  • do you edit the filename or within the rest of line , outside the include argument ?

     
    • status: open --> wont-fix
    • Group: -->