Ralf Hoffmann - 2023-06-07

The current implementation was never really optimized for viewing large files and instead wastes a lot of memory for character lookup tables for faster preview. It can use 10 times the size of the file to view so it can crash on large files if not enough memory is available, or the system slow due to swapping. I will look into improving the memory usage.