Open in Compare Editor -- over a minute of CPU time

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!

A sleeping thread uses no CPU. Try the following, both with and without the for loop. If you see a constant high CPU usage, even when the thread is sleeping, it's probably that the CPU usage is measured as an average over the last second or several seconds, so when the tasks you're performing are intense and take a significant fraction of the time you're sleeping, the average CPU usage doesn't go down that much.
public class Sleeper {
    public static void main(String[] args) throws Exception {
        while(true) {
            for (int ix = 0; ix < 100000000; ix++) {
                int jx = ix * 2;
                ix = --jx;
            Thread.sleep(5 * 1000* 60);
}

Similar Messages

  • Since updating to 3.6.17, Firefox has twice taken over 50-70% of CPU time. Why?

    I accepted an update to Firefox 3.6.17 a few days ago. Yesterday, and again today, Norton has notified me that Firefox is using an abnormal amount of CPU time. In each case, I confirmed this with Windows Task Manager. For extended periods, the CPU usage was 70% or greater, and did not come down until I rebooted my computer.

    I have similar problem only using XPPro/SP3. Once open even if just sitting unused it continues to gobble memory and crashes. It crashed a couple of times a day since the update, has locked the system up a couple of times and crashed a total of 14 times today, the last three while trying to send crash reports. All since the 3.6.17 update. From scanning the forum looks like Apple folks are having similar problems with the last update as well. Even with FF4
    FF has become so unusable (The last time it crashed while sending the crash report from the previous crash) that I'm posting this using Opera 11.

  • Differences in compare editor between JDeveloper 10 and 11

    I have some code that previously opened a split-view editor with files side by side. For JDeveloper 10 the code was roughly:
    DifferenceBlock db = new DifferenceBlock(DifferenceBlock.TYPE_NOCHANGE);
    db.setFirstStart(start1);
    db.setFirstLength(length1);
    db.setSecondStart(start2);
    db.setSecondLength(length2);
    URLContributor contr1 = new URLContributor(url1);
    URLContributor contr2 = new URLContributor(url2);
    CompareModel model = new TextCompareModel(contr1, contr2, new DifferenceBlock[] { db });
    CompareNode compareNode = new CompareNode(CompareURLHelper.newCompareURL(contr1, contr2, 0));
    compareNode.setModel(model);
    compareNode.setSource(contr1);
    compareNode.setTarget(contr2);
    EditorUtil.openDefaultEditorInFrame(compareNode);
    Running this code on 11 does not work and gets NoClassDefFoundError. I tried to browse the API for 11 and found oracle.oracle.javatools.compare.CompareView but am unsure how properly use it. I also noticed that it was part of the API since 10 so perhaps the previous way of doing it was not the preferred way? If I could write the code in such a way that it works on both 10 and 11 it would be ideal but it is not a necessity. Mostly I am just looking for some examples to see how a comparison editor would normally be set up and opened.

    Hi Paul,
    I tried it in 11 and as you said those classes are there and the compare editor opened successfully. There is one remaining issue which I need to figure out and that is how to add differences to the compare editor. Ultimately what is being compared are two files that contain duplicate code. I would like to have any differences between the two files suppressed and then be able to specify what items are highlighted. For example, if there was a duplicated method between the two files I would like to be able to have the method highlighted in one file with a connector to the method highlighted in the other file and nothing else highlighted. Is there a way to access the compare editor after it has been opened and specify the differences? In my previous code I was able to specify the differences using the DifferenceBlock and passing it as a parameter to a CompareModel. Using CompareViewer.get().show() omits this step.
    Another smaller side issue is that sometimes duplicated code would exist within the same file. I noticed that opening a compare editor with the same file in both panes gives a warning message saying that the files are identical. Is there a way to suppress this?
    Thank you,
    Jason

  • Over 12 minutes required to merely OPEN a .rpt file in Crystal Reports version 8.5

    Post Author: Rob Kramar
    CA Forum: General
    Background: Our division has 3 networked, but geographically dispersed, plants; each plant runs MS SQL Server and Crystal Reports on local servers.  A rather complex (version 8.5) Crystal Reports .rpt file (main report plus 12 subreports) exists and executes in one of our distant plants against a MS SQL Server database located there.  I copied that .rpt file to my local server (CTXB) which has Crystal Reports 8.5 installed and which I can access via Citrix from my PC.  I "repointed" that report to our local MS SQL Server database (located on a different server &#91;CTXA&#93; on my local network) &#91;which uses the same database schema as the database in the other plant&#93; by setting up a new ODBC  driver, using the Convert Database Driver function, and using the Set Location function.  I applied these changes to the main report and each of the subreports individually.  I dropped all the links in Visual Linking in the main report and in each of the subreports and recreated each link.  I did a Verify Database on the modified report (which appeared to check the main and each of the 12 subreports).  I ran the report within Crystal Reports v8.5 and verified that the output is correct based on my local MS SQL Server data (on server CTXA).  I saved the .rpt file on server CTXB and exited Crystal Reports v8.5.  I did all the above work on server CTXB via Citrix from my local, networked PC.
    Problem: When I try to reopen the .rpt file in Crystal Reports v8.5 (via Citrix on Server CTXB) it consistently takes over 12 minutes to merely open the report.  Once opened, it executes with acceptable speed within Crystal Reports v8.5 and produces accurate results.
    Note: If I compile the report in v8.5 on server CTXB (via Citrix), and attempt to execute the compiled report on CTXB (via Citrix), the popup with the u201CPrintu201D, u201CDoneu201D, and u201CAboutu201D buttons appears immediately, but an hourglass also appears that prevents me from clicking the u201CPrintu201D button for over 6 minutes.  Once the hourglass disappears, that popup works normally and the report executes with acceptable speed (about 4 seconds) after I click the u201CPrintu201D button for a single execution.  If I then close the output display window and try to immediately rerun the report (from the u201CPrintu201D, u201CDoneu201D, u201CAboutu201D popup which is still visible) by clicking the u201CPrintu201D button, the hourglass returns again for another 6+ minutes.  A third such iteration results in an u201Chourglass lockoutu201D of over 6 minutes.
    Note also: I can open that same .rpt file (stored on server CTXB) in Crystal v7.0 on my local PC, and it opens in less than 5 seconds.

    According to the release notes, for the JRCHelperSample to compile, you must set the target runtime for the project.
    To do this, either create a project from scratch that uses the Tomcat 5.5 target runtime, or go to the properties menu and ensure that the target runtime is set to the application server you will be using.

  • Photoshop CS3  Hangs for over a minute upon opening a file

    My Photoshop CS3 (Windows XP) all of a sudden takes over a minute to open any file. The programs starts fine, then when I select a file to open, the program pauses, then hangs for over a minute and the photoshop window becomes blank before the file finally appears. Any suggestions? Thanks.

    Try making a
    generic printer driver your default printer. If you don't have one, download the Adobe Postscript driver here:
    http://www.adobe.com/support/downloads/product.jsp?product=pdrv&platform=win
    All part of the fascinating world of Photoshop CS3.

  • Opening an Excel file takes over a minute

    Anyone else notice that it takes forever to open an Excel file? I know Numbers has to import it, but it takes over a minute on a Mac Pro?
    I really don't want to install Excel on my machine.

    Bryan,
    How large is the file? If you will be frequently opening and working with large Excel files, you may as well accept that you need Office or NeoOffice or OpenOffice on your Mac. Many of us came to Numbers to escape the grip of MS, but you have to do what makes the most sense. Remember that you can still use Numbers for non-collaborative work.
    Jerry

  • I am comparing two documents. The "Not Responding" event happens for over 30 minutes.

    I am comparing two documents using FM 11 on Windows 7. The "Not Responding" event happens for over 30 minutes. When should I force the application to quit?

    It sounds like your installation is corrupted. I don't know what two checkmarks you mean, but when the Setup Assistant starts it collects some personal information after which it will return you to your normal Desktop. If it isn't doing that, then something is not right.
    I think you will need to shut down the computer, then reboot. If you are able to reboot, then check About This Mac under the pple menu to see what version of OS X it shows is installed. If it shows 10.9.x then do the following:
    Repair the Hard Drive and Permissions - Mavericks, Lion/Mountain Lion
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported then click on the Repair Permissions button. When the process is completed, then quit DU and return to the main menu. Select Restart from the Apple menu.

  • Instruments: Average CPU Load over one minute

    Hi everyone.
    I've written some compositions in Quartz Composer and want to demonstrate how they tax the CPU in various conditions.
    I've opened up Instruments and I can get it to give me a readout for the individual process (Quartz Composer) but I can't see any obvious way to average the CPU load... I can see the peaks, but I'd much rather know what the average is over 1 minute, in this instance (I want to compare different compositions - there's no variables within them as such...)
    I found a little DTrace script in the apple docs, but couldn't really get it to work... it would quit with an error after about 45 seconds...
    Anyone got any ideas?

    OS X Snow Leopard introduced Grand Central, where the OS will distribute the load better to more cores, however it takes time for software to adapt to these changes and make a rewrite of the codebase and test it out, Apple's included.

  • How can I get someone to answer the phone? I'm ready to give VERIZON my business. I sat on the phone for over 20 minutes only to be transferred to "Sales." I then sat on the phone for another 15 minutes!!!! I finally hung up.

    How can I get someone to answer the phone? I'm ready to give VERIZON my business. I sat on the phone for over 20 minutes only to be transferred to "Sales." I then sat on the phone for another 15 minutes!!!! I finally hung up.

    It takes an enormous amount of patience and time to get through to a qualified person.
    My Samsung S5 was locked out and needed a factory reset. Including attempts to achieve this locally, it took over an hour before my problem was even addressed.
    You may be interested in my journey to a very good technical support person.
    First I called the local sales person who had given me his personal business card with the friendly advice to call me with any questions. No answer at about 8:30 am when the business was open. His voice mailbox was full.
    Then I called the local store where I had purchased the phone. The person who answered the phone had learned all the proper stock phrases, but was not familiar with the issue, stated that there were no customers in the store, and I should go there in about an hour when there would be more staff. He suggested dialing *411 from my phone (which was locked). Then he gave me a number to call Verizon, which he had to look up, and it took a minute or so. The number was (removed). That is an internal number for employees and contractors and requires a code to access, obviously not designed for customers' use. He finally cut me off by stating that there were a number of customers in line waiting for his attention!
    After researching all my papers I found 800-922-0204 on my bill. The automated message suggested a hold time of 5 minutes, it took 20 minutes for a Customer Service Representative to pick up, and then I was referred to technical assistance. The hold time was announced to take 5 minutes, after 12 minutes I finally was connected.
    Fortunately I had my computer set up for Skype on a loudspeaker, and was able to do some other paperwork while waiting.
    Persistence was rewarded by having the good fortune to be connected to a very experienced, qualified and patient technical support staff with the name of Thomas (removed). He solved my problem, answered my questions during the process of resetting the phone, and gave an example of courteous and kind customer service that I had never experienced before when dealing with any major internet company.
    >> Edited to comply with the Verizon Wireless Terms of Service <<
    Edited by:  Verizon Moderator

  • "open in external editor" not working

    I use "open in external editor" a lot to edit pictures in Photoshop, but it has stopped working. Now it launches Photoshop, but doesn't open/load the relevant image.
    What has changed since I had this working?
    I had a couple of kernel panics, and used "archive and install" to re-install Tiger, and then 10.4.3.
    I am using iphoto 5.0.4 and Photoshop CS 8.
    Any remedies/help gratefully received.

    Hi Nige,
    It is a Photoshop problem and probably because it is missing files.
    this is an old copy/paste from MacFixit it.
    Try this suggestion I copied and pasted from MacFixIt first
    "Photoshop CS: Fix for file opening problem Yesterday we reported that since installing Mac OS X 10.4, Photoshop CS refuses to open any new files or create any new documents, reporting a "program error" when one tries to do so. Our previously reported workaround involved re-installing Photoshop CS, but MacFixIt reader Bryan Schappel now offers a faster solution:
    "This happens because the Archive and Install option does not copy over a necessary folder for Photoshop. The critical folder is called 'ScriptingAdditions' and is stored in the main Library folder. This folder contains one file 'Adobe Unit Types' that makes Photoshop open files that have been double-clicked or dragged to the PS icon in the Dock.
    "Simply move this folder (and file) from the 'Previous System' backup to the Library folder, relaunch Photoshop and all is well again. No need to completely re-install.""
    I copied an pasted instead of putting the link in because it is not on the front page and you would have to search around to find it. Hope it is ok to do that here. If you don't still have the folder then you have to reinstall PhotoShop.

  • I cannot open my iphoto application.  The minute I double click on the icon I get the rainbow which spins forever.  I've used Applejack to repair the hd, but even that didn't work.  I've getting into iphoto preferences..can't.  Help!

    I cannot open my iphoto application.  The minute I double click on the icon I get the rainbow which spins forever.  I've used Applejack to repair the hd, but even that didn't work.  I've getting into iphoto preferences..can't.  Help!

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • Opening photo in Editor problem

    I just installed PSE 12 on my new iMac. When I try to open a photo from iPhoto, I am getting the following message, "Could not complete your request because Photoshop Elements does not recognize this type of file." How do I access my photos to edit them?

    You cannot use iphoto that way. PSE can't open photos from iphoto because if it were to write to your iphoto library it could easily corrupt it and cause the loss of all the images there. You should NEVER poke around in the iphoto library from outside iphoto.
    You have two choices:
    1. Set PSE as your external editor and send the photos from iphoto. Save, not save as without changing the name or format and iphoto will remember your last saved edits and the original, but you will need to lose the edits to revert back to the original. You will need to go to the PSE preferences>saving files and set On First Save to Save over existing to make this work. When you see the Save As window, something is wrong.
    2. Export the photos from iphoto, use file>open in the editor and make all the changes you want, then save your image in any format or with any name you like and import the edited photo back to iphoto as a new file. This lets you save as many versions of your photo as you like.

  • Problem opening in external editor

    Hello, I am having a problem with photos that I've previously sent through 'open in external editor' in that rather then reopening the photo it duplicates the image and then opens that duplicate. It is only happening on a few photos and is not library wide though frustratingly it happens at random. Sometimes i can get it to work properly by closing and reopening aperture or if that doesn't work by rebuilding the library.
    It's quite an annoyance since if it starts 'preparing image for external editor' there is no way that I can stop it and I have to wait for it to copy the photo, open it in photoshop, then I can close the file and delete the duplicate.
    obviously for a previously exported photo this is not a desirable, any suggestions?

    Hi
    Thats the way it works.
    You select a photo you want to edit in external editor ie, CS3 either by right clicking & selecting "edit with" > Photoshop CS3 or alternatively by choosing Command/Shift O which opens your external editor.
    Aperture duplicates your image and then opens it in your external editor. Any adjustments you make in Aperture or CS3 are then relayed between CS3 & Aperture as you switch between the two.
    In Aperture > Preferences click > metadata. put a tick next to tooltips. When you hover over a image now it will tell you that it is a version edited in PSD file format so you know which ones you have edited externally.
    A note... In Aperture/ preferences/Export where it says "External Image editor... choose photoshop CS3 if indeed that is your editor from the list. Also, choose External Editor File Format and set your file format to PSD.
    PSD supports all of CS3 features, but you can choose TIFF as well if you prefer.
    Next to "External Editor File Format" enter a resolution of 300dpi. This specifies that the image is exported between the two Applications with a resolution setting of 300dpi, plenty to work with.
    Hope this helps.
    Gerry..........

  • During restore my 3GS has been stuck in Apps loading for over 30 minutes now.. Any suggestions? Thanks

    During restore my 3GS has been stuck in Apps loading for over 30 minutes now.. Any suggestions? Thanks ps.. I am holding off buying 4S until bugs worked out..

    The problem is twenty three people leaving or twenty three thousand leaving has zero impact on a carrier with over 100 million customers. And they have the lowest churn rate. So if 10,000 or 20,000 or more churn out it means little to the carrier.
    If you have a real lawyer he/she will advise you that you have no case. The device was not lost or stolen by the carrier, you were not eligible for a new device, and like any business who employs large numbers of poorly trained personnel who make low wages what was told to you is not in writing. So a verbal exchange does not hold up.
    In fact in Verizon's customer agreement it has such a disclaimer against any verbal exchanges so if you have that agreement in writing, go get them.
    The posting on public forums and places like Face Book, Linkin, Google+ or a personal web site can open you up to a lawsuit for Dilution of Trade Name, and other offences. However if you have proof then go for it.
    Unfortunately that is how big business works today. A pity

  • JDeveloper 11.1.1.7 takes over 45 minutes to start

    Hi,
    I have windows 7 64 bit with 64 bit JDK 1.7. My jDeveloper 11.1.1.7 takes over 45 minutes to start, even the previous versions took similar long time. I have McAfee running on my system and have 8 GB RAM and more than 100 GB HDD on my C drive. I tried playing with the tuning parameters as mentioned in few blogs, but nothing seems to help.
    Please help.
    Avinash
    Edited by: user773889 on 26-Apr-2013 00:58

    Indeed, McAfee caches what it has previously scanned. I've had different versions of McAfee where this has been, and hasen't been a problem.
    It's pretty easy to tell on Windows if McAfee is the culprit. Open the Task Manager and watch is McAfee active (consuming CPU) during the whole process of opening JDev.
    If so you're going to have to work with your IT department to get exemptions for JDev put in place if it is.
    CM.

Maybe you are looking for

  • Bt infinity ordered and told what speed i would re...

    Last week i ordered BT Infinty, Told what speed i would recieve 56mb/s 20mb  I confirmed this with my telephone number and placed an order and a date was set for an engineer to set up infinty, I cancelled my current isp gave bt my migration code, But

  • FindByKey not used in ADFToyStore (buggy?)

    When working with ADF and JSP Pages, I found that using RowSetIterator.findByKey (called by DCIteratorBinding.setCurrentRowWithKey) has several issues: If called from the client side (DataForwardAction) and working in Sync Mode, it constantly throws

  • Final cut query

    when cutting footage on the timeline and i see something i want to use later i'd like to use the range tool to quickly select it and drag it into a new bin. is there a way of changing the name of the clip i've selected and put in the new bin without

  • How does one create this effect...

    I want to make text or any shape really be like almost engraved into any image. For an example look at the gts part of this background image. http://i1.ytimg.com/bg/H-_hzb2ILSCo9ftVSnrCIQ/115.jpg?app=bg&v=4ed767bf or the text in this just without the

  • Cant open html attachments sent from Windows Xp with ThunderBird

    I have a friend who sends me an email with an html attachment. When I open the attachment via my ISP's webmail it shows up properly. But when i use MAC to open the attachment it opens up but only shows the background logo. I've tried another MAC Book