Re: Large files on Windows?

Nedo Papanti <[email protected]> Tue, 21 Nov 2023 01:26:38 -0800 (PST)
Newsgroups gmane.editors.scite.general
Message-ID <[email protected]>
Hi Neil,

I think I grasp the high-level meaning of what you say.

From my side as a user I am happy to know that I can use right-click 
options as usual while I need to go for "File, Open" for large files.

SciTE is really great: thanks to all involved!

Thanks again

Best Regards

Il giorno martedì 21 novembre 2023 alle 09:03:39 UTC Neil Hodgson ha 
scritto:

> I have been able to reproduce the problem with right clicking to run SciTE.
>
> To avoid wasting space on indexes like line start positions, Scintilla 
> document objects are created as either normal (less than 2GB) or large and 
> either with styles or without styles. To simplify implementation, documents 
> can't switch between these modes once created.
>
> The different behaviour experienced is because large files are 
> interactively opened using multi-threading so SciTE remains responsive. 
> However, when some other code requests a file be opened, that is performed 
> synchronously so that subsequent commands (like go to line 876543 or 
> highlight every "wittichii") will operate on the completely loaded file.
>
> The different approaches also use different calls: multi-threaded checks 
> the size and creates a large file mode document if needed; single threaded 
> commonly reuses an existing normal size document. Thus the right-click menu 
> is using a document object that is not capable of holding more than 2GB and 
> it gets a litle confused.
>
> One solution could be to force the multi-threaded loader for large files. 
> The calling application could wait before asking SciTE to do more actions.
>
> Another possibilty is for the single-threaded loader to check for large 
> files and create a new large document object. The code for this is a bit 
> complicated though.
>
> Neil
>
>

-- 
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/scite-interest/ad811af5-0082-4e8f-95ad-5270ba8c4accn%40googlegroups.com.