adobe / brackets

An open source code editor for the web, written in JavaScript, HTML and CSS.
http://brackets.io
MIT License
33.25k stars 7.63k forks source link

Brackets becomes unresponsive when working with a large code base #9444

Closed beldar closed 10 years ago

beldar commented 10 years ago

When working with a large code base, bracket freezes for a few seconds, and sometimes even permanently.

OS: Mac OS X 10.9.4 Bracket version: sprint 43 experimental build 0.43.0-14375 (release 287868769) build timestamp: Tue Sep 02 2014 14:40:48 GMT-0700

redmunds commented 10 years ago

@beldar Sorry to hear that you're running into problems with Brackets. Read about working with large projects and let us know if that helps.

tomByrer commented 10 years ago

I've also noticed that a large file will cause Brackets to freeze on my Win7_64 i7 laptop. Really huge files will also choke Notepadd++. But there is more noticeable lag on medium-large files in Brackets than other native editors. (Atom has similar large-file issue.)

redmunds commented 10 years ago

@tomByrer What is the size of the file? What type of file is it? Can you post a copy that we can use for testing?

MarkLeMerise commented 10 years ago

I am trying to open a 390MB XML file on Brackets Sprint 44 (freshly installed on Mac OS X 10.10) and it crashes every time.

tomByrer commented 10 years ago

@redmunds http://api.jsdelivr.com/v1/jsdelivr/libraries

redmunds commented 10 years ago

@tomByrer Thanks for the sample file. That's a 3+ MB json file. You didn't really say which operation cause a "freeze" and which cause a "lag", so let us know. It might also be related to your hardware spec and what other apps you have running.

FYI, Brackets seems to handle this file pretty well on my system with an SSD drive and 5GB of 8GB RAM in use. File opened in ~0.5 sec and I can scroll around pretty quickly. I'm not a fast typer, but I'm not noticing a lag. I'm on Win7.

tomByrer commented 10 years ago

Yep, big file. I probably should learn how to chop it up in CLI, but perhaps Node could be trained how to do it also (doesn't help with copy/paste though). 5500RPM laptop drive, though I keep my OS drive with lots of room (utilization always below 40%).

peterflynn commented 10 years ago

@mslemeri: The crash you're reporting will be fixed in #9495, by blocking you from opening files that big. Unfortunately, Brackets simply isn't designed for editing 100MB files at this time.

@tomByrer: A 3MB file should work ok in Brackets, with just a few seconds of lag when it's initially opened. If you're seeing something worse, please open a new issue with details about exactly what actions you're doing and which of them are slow.

@beldar: Since we haven't heard back from you with more info, closing this issue for now. If you can give us more details let us know and we'll reopen this.