Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Flex > Flex 2, 3 & 4

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-19-2008, 06:58 AM   #1
x77686d
Registered User
 
Join Date: Mar 2008
Posts: 6
Default Open in Compare Editor (aka diff) -- incredibly slow!

I've got a 947-line MXML file that seems to require over a minute of CPU time to "Open in Compare Editor".

Specifically, I'm using Flex Builder 3 as an Eclipse 3.3.2 plug-in with Subclipse 1.2.4. If I synchronize with repository that runs in a few seconds. If I then try to view the diff for the file in question (main.mxml), the CPU goes to 100% and eclipse.exe piles up about 1:19 of CPU time.

I tried a few experiments with chopping out parts of the file. Here are times to Open in Compare Editor single-line diffs with only the first N lines of the file in question:

400 lines: 56 seconds
200 lines: 15 seconds
150 lines: 4 seconds
100 lines: instantaneous

Executive summary: OUCH!
x77686d is offline   Reply With Quote
Old 03-20-2008, 05:28 PM   #2
dr_zeus
Feathers
 
dr_zeus's Avatar
 
Join Date: Mar 2005
Location: Silicon Valley
Posts: 1,999
Default

I've heard that XML is hard to diff. Combine that with the fact that you have nearly 1000 lines of it, and I'm not surprised.
__________________
Josh Tynjala | Feathers
dr_zeus is offline   Reply With Quote
Old 03-21-2008, 08:57 AM   #3
jsebrech
Joeri Sebrechts
 
Join Date: Apr 2005
Location: Antwerp, Belgium
Posts: 1,465
Default

I would suggest feeding it through another compare tool. Not being able to diff a 1000 line file (in any format) in less than a minute is ridiculous.
jsebrech is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:55 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.