Skip to content

Text replacement took 20GB RAM and more <- because of changed "max_line_len_for_undo" #6015

@Hexaae

Description

@Hexaae

Today I was trying to replace \r\n occurrences with a LF (0x0A, I pressed CTRL+RETURN in the multiline search gadget) in a huge one line json file to make it more readable, and noticed cudatext took more than 50secs and then showed me this warning message:

Image

Then I noticed my used RAM went from 10GB to 29GB (!!), and when I Aborted the process clicking on the button 19GB were finally release after cudatext got force-closed automatically.

Is it ok it takes so much time and memory? Can this be optimized in some way?
Here is the file:

SkaldProject-resources.assets-2261.gz

And my user settings:

{
  "ui_toolbar_show": true,
  "ui_theme": "syn",
  "ui_theme_syntax": "syn",
  "ui_toolbar_theme": "default_16x16",
  "micromap_show": true,
  "minimap_show": true,
  "ui_statusbar_no_sel": "{_ln} {y}/{count}, {_col} {xx}",
  "ui_statusbar_small_sel": "{_ln} {y}/{count}, {_col} {xx}, {_sel} {selchars}",
  "ui_statusbar_str_sel": "{_ln} {y}/{count}, {_col} {xx}, {selchars}:{sel} {_linesel}",
  "ui_statusbar_panels": "caret,C,220|enc,C,120|ends,A,45|lexer,C,140|tabsize,A,75|selmode,A,15|msg,L,4000",
  "ui_max_history_menu": 25,
  "ui_auto_save_session": false,
  "ui_one_instance": true,
  "ruler_show": true,
  "wrap_enabled_max_lines": 360000,
  "unprinted_show": false,
  "unprinted_content": "sedp",
  "font_name": "Consolas",
  "font_size": 10,
  "margin_right": 90,
  "margin_left_1": 0,
  "margin_left": 0,
  "max_line_len_for_undo": 99902400,
  "undo_limit": 9000,
  "find_hi_max_lines": 10000000,
  "find_hi_max_columns": 6000,
  "find_hi_max_line_len": 10000000,
  "find_suggest_sel": true,
  "find_wrapped_blinking": "EdMarkedRangeBg"
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions