# Handle large/huge files better

**URL:** <https://forum.sublimetext.com/t/handle-large-huge-files-better/24858>\
**Category:** Ideas and Feature Requests\
**Created:** [December 8, 2016, 7:42am UTC](https://forum.sublimetext.com/t/handle-large-huge-files-better/24858 "2016-12-08T07:42:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mstein](https://forum.sublimetext.com/user_avatar/forum.sublimetext.com/mstein/32/52865_2.png) [@mstein](https://forum.sublimetext.com/u/mstein)\
**Post date:** [December 8, 2016, 7:42am UTC](https://forum.sublimetext.com/t/handle-large-huge-files-better/24858/1 "2016-12-08T07:42:00Z")

</div>

Currently Sublimetext 3 can open large files (about 500mb for example) but:

- It takes very long
- and searching inside takes very long, too

In comparision there are other editors (UltraEdit) which opens such files instantly.

Solution idea:

- Do not load the complete file into memory when it’s larger than X MB. Just load the first X MB only.
- Continue loading when the user scrolls down or the search needs to load more up to the next occurance of the search.

---

<div class="post-metadata">

**Author:** ![kingkeith](https://forum.sublimetext.com/user_avatar/forum.sublimetext.com/kingkeith/32/50274_2.png) [@kingkeith](https://forum.sublimetext.com/u/kingkeith)\
**Post date:** [December 8, 2016, 7:47am UTC](https://forum.sublimetext.com/t/handle-large-huge-files-better/24858/2 "2016-12-08T07:47:06Z")

</div>

there’s also a discussion about this here:

> [@Sublime Text performance with very large files](https://forum.sublimetext.com/t/sublime-text-performance-with-very-large-files/9832):
>
> Hey guys. Me and my colleague are always discussing many different IDE’s and text editors. I am a big sublime text fan, and he pretty much hates everything. One of the problems we had with sublime text is that it’s really slow at loading very big files. Our example use-case was opening a 50MB .sql file. In my opinion this is not a valid usecase for a text editor but according to him it is. Other editors seem to load the file withing a few seconds. For example: EditPlus and SciTE (based on scin…

---

<div class="post-metadata">

**Author:** ![mstein](https://forum.sublimetext.com/user_avatar/forum.sublimetext.com/mstein/32/52865_2.png) [@mstein](https://forum.sublimetext.com/u/mstein)\
**Post date:** [December 14, 2016, 6:28pm UTC](https://forum.sublimetext.com/t/handle-large-huge-files-better/24858/3 "2016-12-14T18:28:47Z")

</div>

yeah, thanks. I added my comment to that discussion…
