textadept icon indicating copy to clipboard operation
textadept copied to clipboard

Textadept freezes on large csv file

Open AmerM137 opened this issue 6 months ago • 10 comments

I work a lot with csv outputs from databases and most of the time I like to open them in a text editor because Excel likes to overwrite large integers with scientific notation and other issues. I like how snappy Textadept feels overall except for one peculiar edge case.

I noticed that Textadept comes to a halt when loading such csv files. For comparison, none of sublime/litexl/vscode do that so I am thinking it's trying to do something that those text editors avoid. The file loads just fine, but trying to navigate the file once it's loaded makes Textadept freeze and CPU usage shoots up.

For reference, the typical size of the csv fields are about 100 MB. An example file would be about 100k-200k rows x 75-100 columns. Definitely not the biggest files I've worked with, I've loaded 300 MB+ files in other editors with no issues.

To replicate: Load large csv, data should appear in editor. Try to navigate to middle/end of file using home/end or page up and down the file. CPU usage shoots up, Textadept freezes and becomes unresponsive.

Is there any config parameter that I can use to tell Textadept to not do whatever it's trying to do on the large csv file?

Edit -> OS Win11 v10.0.22631 Build 22631

Thank you!

AmerM137 avatar Aug 04 '24 17:08 AmerM137