Not signed in (Sign In)

Categories

Vanilla 1.1.1 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorHarkonenn
    • CommentTimeAug 7th 2008
     permalink
    I've noticed in Alpha 0.3.1.734 that there is up to a 2 second delay when applying the theme to a document when initially opening it. For example, with Intype NOT running, if I right-click on a PHP document, choose Open With Intype, the document opens but no theme is applied (except for the background color and text color); after about a 2 second delay, the theme colors/styling are applied to the document in a visual sweep from top to bottom.

    If Intype is already running, the delay is reduced to less than a second, but it's still noticeable. Document length does not seem to be a factor, as I've tried it with files from 1K to 100K
    • CommentAuthordangdang
    • CommentTimeAug 7th 2008
     permalink
    I have noticed this as well.

    But seeing as I just want them to get 0.3.5 out as soon as possible I just wasn't gonna say anything.

    That being said, it would still be nice not to have that delay.

    Thanks Intype Team!!
  1.  permalink

    When you start Intype, it must load hundreds of files from bundles folder (snippets, languages, themes). Early versions were doing this in main thread, so the application launch was delayed. In the latest versions, we have moved the loader to separate thread. The logic is to load files by types: First themes, then grammars, and snippets as last. The actual syntax highlighting will appear after grammars are loaded and compiled. However this is done only when Intype gets started. The reason for visual sweep is that the parser cannot work much faster than it is now — that’s cost of having user-defined grammars. We have some optimizations designed for the future, but for now this is how it should work.