Closed Alexey-T closed 3 months ago
Editor.get_char_count(max_chars, max_time)
return count of chars in document. EOL is counted as 1.
max_chars
max_time
it will be faster version of python function which I shown to @pintassilgo. python version of code calls ed.get_line_len() in loop which is SLOW.
ed.get_line_len()
Editor.get_char_count(max_chars, max_time)
return count of chars in document. EOL is counted as 1.
max_chars
(it can be 0x7fffFFFF to avoid limit), return -1.max_time
(in mseconds, it can be 0x7fffFFFF to avoid limit) return -2.it will be faster version of python function which I shown to @pintassilgo. python version of code calls
ed.get_line_len()
in loop which is SLOW.