When looking at a large file in Diffusion:
- disable highlighting if it's huge and show a note about why;
- pick up a few other optimizations.
Differential D14959
Improve Diffusion browse performance for large files epriestley on Jan 6 2016, 2:44 PM. Authored by Tags None Referenced Files
Subscribers None
Details
When looking at a large file in Diffusion:
Locally, this improves the main render of __phutil_library_map__.php from 3,200ms to 600ms for me, at the cost of syntax highlighting (we can eventually add view options and let users re-enable it).
Diff Detail
Event TimelineComment Actions I think our behavior here is now better than GitHub, which is roughly as fast but truncates the file in the middle: I'd rather lose syntax highlighting than half the file? Comment Actions (I'm going to collapse the blame, editor, highlighting and lint options into a "View Options" dropdown menu eventually, but probably not in the immediate future.) |