adobe / brackets

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

Enhance QuickEdit performance #9541

Open xgenvn opened 10 years ago

xgenvn commented 10 years ago

Hi, When using Quick Edit in a large project which including many css files, it's taking a lot of time to show the related css. I haven't looked into the implement of this feature so I can't say more. However, IMO a cache file, or if we can add one file to declare which files/folders to be searched when editing should provide a huge improvement (just something like .git_ignore, or bowerrc.json etc).

Does anyone have the same problem, and any suggestion how to setup a large project to improve performance of this feature?

Thanks.

redmunds commented 10 years ago

Yes, we'd like to improve the performance of Quick Edit searches. Be sure to read the Large Projects in Brackets wiki page.

peterflynn commented 10 years ago

@xgenvn How many CSS files are in your project? Any rough idea of how many KB/MB the CSS files add up to? Also, how many total files are in your project?

peterflynn commented 10 years ago

One other question -- is it only slow the first time you invoke Quick Edit, or is it equally slow every time?

xgenvn commented 10 years ago

@redmunds Thanks for the links, I think it's a must-read for every new user.

@peterflynn It's around 300 files, less than 5Mb, a messy collection of minified and not minified styles.

I guess Brackets not caching search results or parsed files, so it's slow for every time. I just ended up using Quick Edit directly in my project folder. I'll try the work around that @redmunds suggest.

ingorichter commented 10 years ago

I made the same observations and it's equally slow every time.

pete-mann commented 9 years ago

I am recently experiencing delay when using quick edit and also when switching between files. At times the delay is greater than 1.5 seconds rendering the application super slow and almost unusable.

I've not noticed this delay in previous versions (<0.44) of brackets - which have performed perfectly when editing even larger projects. This project I have open consists of 119 files - total of ~3MB.

Switching between files in "working files" pane or by using ctrl + tab is equally as slow.

Brackets Build: 0.44.0-14876

infosys-ui commented 9 years ago

I have same issue here. It's quite annoying because the quick edit is too slow. I tried "Reload Without Extensions" and it doesn't help at all. Any ideas to fix it?

redmunds commented 9 years ago

@xgenvn @pete-mann @infosys-ui A change was recently merged for Brackets 1.2 which greatly improves parsing performance of minified files. Let us know if you are running a cloned version of Brackets and can see if this change helps, otherwise let us know after 1.2 is released.