kate version 15.07.90 According to https://git.reviewboard.kde.org/r/114315/ a warning on opening large binary files should already be implemented. When I open a 1 GB file or drop it to kate there is no warning and it takes very long until kate becomes responsive again.
Checking the code from the reviewboard link in comment #0, it looks like it only warns when you are opening using the "File > Open..." dialog, but not when opening through other means (e.g. from the command line).
Thanks for checking. So I keep the bug open as "consistency issue".
BTW - this is probably not the correct place to report this, but comparing Kate's behavior with very large files (millions of rows) compared to GNOME's gedit: kate freezes until everything is loaded, while gedit loads incrementally and shows the content, which can be scrolled and selected, while it is loading - and this is a much better behavior. Also, gedit finishes much faster than kate on the same file.
(In reply to Oded Arbel from comment #3) Yes, that is a limitation we have due to how KTextEditor works. For me, with 8G ram, Kate just crashes on a 300 mb file ¯\_(ツ)_/¯ See: https://invent.kde.org/frameworks/ktexteditor/-/issues/1
*** Bug 430269 has been marked as a duplicate of this bug. ***
Seems we still have cases that bypass the warning. *** This bug has been marked as a duplicate of bug 400360 ***