Work with large files in Textmode on Mac

You can open and edit large files, such as logs and exported data, in Textmode. Typing, scrolling, and moving to the next match with Find stay quick in a large document. A few features work differently, as described below.

Open a large file

When you open a file larger than 200 MB, Textmode asks before it opens the file. The alert shows the name and size of the file and the message “Opening such a large file can make the application slow or unresponsive. Do you really want to open the file?”

The larger the file, the longer it takes to open.

Memory

Textmode reads the whole file into memory. An open document uses more memory than the size of its file, and more again while the file is opening. Text with characters outside ASCII, such as accented letters or Japanese, needs more memory than plain ASCII text of the same file size.

What works differently in large documents

Very long lines

A line longer than 32,768 characters is laid out in pieces of about 16,384 characters, so that typing in it stays quick. The line is shown with an extra break at the start of each piece. The text itself is not changed: no line endings are added to the document.

See also