# TextCtrl performance for large files

**URL:** <https://www.ruby-forum.com/t/textctrl-performance-for-large-files/173765>\
**Category:** wxRuby\
**Created:** [August 14, 2009, 11:38am UTC](https://www.ruby-forum.com/t/textctrl-performance-for-large-files/173765 "2009-08-14T11:38:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rossgoodell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f19dbf/32.png) [@rossgoodell](https://www.ruby-forum.com/u/rossgoodell)\
**Post date:** [August 14, 2009, 11:38am UTC](https://www.ruby-forum.com/t/textctrl-performance-for-large-files/173765/1 "2009-08-14T11:38:04Z")

</div>

I’ve been trying to speed up my program, which uses a TextCtrl, for  
large files by getting rid of code using line numbers. However, it  
seems that just using the get\_range method is slowing down my program  
for large files. I don’t know whether I’m doing something wrong or  
there’s a way to access the text without significant slowing in large  
files. If anyone can help, I’d very much appreciate it.

Thanks,  
Ross Goodell
