Query In SP runs 10x slower than straight query - NOT Parameter Sniffing Issue

Hi Everyone,
I have a real mystery on my hands that appears to be a parameter sniffing issue with my SP but I think is not. I have tried every parameter sniffing workaround trick in the book ( local variables, option recompile, with recompile, optimize for variables,UNKNOWN,
table hints, query hints, MAXDOP, etc.) I have dropped indexes/recreated indexes, updated statistics, etc. I have restored a copy of the DB to 2 different servers ( one with identical HW specs as the box having the issue, one totally different ) and the SP
runs fine on those 2, no workarounds needed. Execution plans are identical on all boxes. When I run a profiler on the 2 different boxes however, I see that on the server having issues, the Reads are around 8087859 while the other server with identical HW,
the reads are 10608. Not quite sure how to interpret those results or where to look for answers. When the sql server service is restarted on the server having issues and the sp is run, it runs fine for a time ( not sure how long ) and then goes back to its
snail pace speed. Here is the profile trace:
Here is the stored procedure. The only modifications I made were the local variables to eliminate the obvious parameter sniffing issues and I added the WITH NOLOCK hints:
/****** Object:  StoredProcedure [dbo].[EC_EMP_APPR_SIGNATURE_SEL_TEST]    Script Date: 12/03/2014 08:06:01 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
/****** Object:  StoredProcedure [dbo].[EC_EMP_APPR_SIGNATURE_SEL_TEST]    Script Date: 12/02/2014 22:24:45 ******/
ALTER PROCEDURE [dbo].[EC_EMP_APPR_SIGNATURE_SEL_TEST]
@EMPLOYEE_ID varchar(9) ,
@OVERRIDE_JOB_CODE varchar(8),
@OVERRIDE_LOCATION_CODE varchar(8),
@OVERRIDE_EST_CODE varchar(8),
@OVERRIDE_EMP_GROUP_CODE varchar(8)
AS
set NOCOUNT ON
declare
@EMPLOYEE_ID_LOCAL varchar(9),
@OVERRIDE_JOB_CODE_LOCAL varchar(8),
@OVERRIDE_LOCATION_CODE_LOCAL varchar(8),
@OVERRIDE_EST_CODE_LOCAL varchar(8),
@OVERRIDE_EMP_GROUP_CODE_LOCAL varchar(8)
set @EMPLOYEE_ID_LOCAL = @EMPLOYEE_ID
set @OVERRIDE_JOB_CODE_LOCAL = @OVERRIDE_JOB_CODE
set @OVERRIDE_LOCATION_CODE_LOCAL = @OVERRIDE_LOCATION_CODE
set @OVERRIDE_EST_CODE_LOCAL = @OVERRIDE_EST_CODE
set @OVERRIDE_EMP_GROUP_CODE_LOCAL = @OVERRIDE_EMP_GROUP_CODE
select 3 as SIGNATURE_ID
from EC_EMPLOYEE_POSITIONS p
where p.EMPLOYEE_ID = @EMPLOYEE_ID_LOCAL
 and DATEADD(dd, 0, DATEDIFF(dd, 0, GETDATE())) between p.POSITION_START_DATE and ISNULL(p.POSITION_END_DATE, convert(datetime, '47121231', 112))
 and (dbo.lpad(isnull(p.job_code,''), 8, ' ') + dbo.lpad(isnull(p.location_code,''), 8, ' ') + dbo.lpad(isnull(p.ESTABLISHMENT_CODE,'<N/A>'), 8, ' ') + dbo.lpad(isnull(p.EMP_GROUP_CODE,''), 8, ' '))
 in
 (select (dbo.lpad(isnull(ep.REPORTING_JOB_CODE,''), 8, ' ') + dbo.lpad(isnull(ep.REPORTING_LOCATION_CODE,''), 8, ' ') + dbo.lpad(isnull(ep.REPORTING_ESTABLISHMENT_CODE,'<N/A>'), 8, ' ') + dbo.lpad(isnull(ep.REPORTING_EMP_GROUP_CODE,''),
8, ' '))
  from EC_POSITIONS  ep
  where DATEADD(dd, 0, DATEDIFF(dd, 0, GETDATE())) between ep.POSITION_EFFECT_DATE
   and ISNULL(ep.POSITION_TERM_DATE, convert(datetime, '47121231', 112))
   and (dbo.lpad(isnull(ep.job_code,''), 8, ' ') + dbo.lpad(isnull(ep.location_code,''), 8, ' ') + dbo.lpad(isnull(ep.ESTABLISHMENT_CODE,'<N/A>'), 8, ' ') + dbo.lpad(isnull(ep.EMP_GROUP_CODE,''), 8, ' '))
   = (dbo.lpad(isnull(@OVERRIDE_JOB_CODE_LOCAL,''), 8, ' ') + dbo.lpad(isnull(@OVERRIDE_LOCATION_CODE_LOCAL,''), 8, ' ') + dbo.lpad(isnull(@OVERRIDE_EST_CODE_LOCAL,'<N/A>'), 8, ' ') + dbo.lpad(isnull(@OVERRIDE_EMP_GROUP_CODE_LOCAL,''),
8, ' ')))
union
select 4 as SIGNATURE_ID
from EC_EMPLOYEE_POSITIONS p
where p.EMPLOYEE_ID = @EMPLOYEE_ID_LOCAL
 and DATEADD(dd, 0, DATEDIFF(dd, 0, GETDATE())) between p.POSITION_START_DATE and ISNULL(p.POSITION_END_DATE, convert(datetime, '47121231', 112))
 and (dbo.lpad(isnull(p.job_code,''), 8, ' ') + dbo.lpad(isnull(p.location_code,''), 8, ' ') + dbo.lpad(isnull(p.ESTABLISHMENT_CODE,'<N/A>'), 8, ' ') + dbo.lpad(isnull(p.EMP_GROUP_CODE,''), 8, ' '))
 in
 (select (dbo.lpad(isnull(ep.REPORTING_JOB_CODE,''), 8, ' ') + dbo.lpad(isnull(ep.REPORTING_LOCATION_CODE,''), 8, ' ') + dbo.lpad(isnull(ep.REPORTING_ESTABLISHMENT_CODE,'<N/A>'), 8, ' ') + dbo.lpad(isnull(ep.REPORTING_EMP_GROUP_CODE,''),
8, ' '))
  from EC_POSITIONS  ep with (NOLOCK)
  where DATEADD(dd, 0, DATEDIFF(dd, 0, GETDATE())) between ep.POSITION_EFFECT_DATE
   and ISNULL(ep.POSITION_TERM_DATE, convert(datetime, '47121231', 112))
   and (dbo.lpad(isnull(ep.job_code,''), 8, ' ') + dbo.lpad(isnull(ep.location_code,''), 8, ' ') + dbo.lpad(isnull(ep.ESTABLISHMENT_CODE,'<N/A>'), 8, ' ') + dbo.lpad(isnull(ep.EMP_GROUP_CODE,''), 8, ' '))
   in   
 (select (dbo.lpad(isnull(ep.REPORTING_JOB_CODE,''), 8, ' ') + dbo.lpad(isnull(ep.REPORTING_LOCATION_CODE,''), 8, ' ') + dbo.lpad(isnull(ep.REPORTING_ESTABLISHMENT_CODE,'<N/A>'), 8, ' ') + dbo.lpad(isnull(ep.REPORTING_EMP_GROUP_CODE,''),
8, ' '))
  from EC_POSITIONS ep  with (NOLOCK)
  where DATEADD(dd, 0, DATEDIFF(dd, 0, GETDATE())) between ep.POSITION_EFFECT_DATE
   and ISNULL(ep.POSITION_TERM_DATE, convert(datetime, '47121231', 112))
   and (dbo.lpad(isnull(ep.job_code,''), 8, ' ') + dbo.lpad(isnull(ep.location_code,''), 8, ' ') + dbo.lpad(isnull(ep.ESTABLISHMENT_CODE,'<N/A>'), 8, ' ') + dbo.lpad(isnull(ep.EMP_GROUP_CODE,''), 8, ' '))
   = (dbo.lpad(isnull(@OVERRIDE_JOB_CODE_LOCAL,''), 8, ' ') + dbo.lpad(isnull(@OVERRIDE_LOCATION_CODE_LOCAL,''), 8, ' ') + dbo.lpad(isnull(@OVERRIDE_EST_CODE_LOCAL,'<N/A>'), 8, ' ') + dbo.lpad(isnull(@OVERRIDE_EMP_GROUP_CODE_lOCAL,''),
8, ' '))))
order by SIGNATURE_ID
Any suggestions would be greatly appreciated by anyone. I have no more tricks left in my toolbox and am starting to think its either the hardware or the database engine itself that is at fault.
Max

fast server:
SQL Server parse and compile time:
   CPU time = 0 ms, elapsed time = 0 ms.
SQL Server Execution Times:
CPU time = 0 ms, elapsed time = 0 ms.
SQL Server Execution Times:
   CPU time = 0 ms,  elapsed time = 0 ms.
SQL Server Execution Times:
   CPU time = 0 ms,  elapsed time = 0 ms.
SQL Server Execution Times:
   CPU time = 0 ms,  elapsed time = 0 ms.
SQL Server Execution Times:
   CPU time = 0 ms,  elapsed time = 0 ms.
SQL Server Execution Times:
   CPU time = 0 ms,  elapsed time = 0 ms.
Table 'EC_POSITIONS'. Scan count 3, logical reads 10450, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
Table 'EC_EMPLOYEE_POSITIONS'. Scan count 2, logical reads 6, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
SQL Server Execution Times:
   CPU time = 3343 ms,  elapsed time = 3460 ms.
SQL Server Execution Times:
   CPU time = 3343 ms,  elapsed time = 3460 ms.
Slow server:
SQL Server parse and compile time:
   CPU time = 0 ms, elapsed time = 0 ms.
SQL Server Execution Times:
CPU time = 0 ms, elapsed time = 0 ms.
SQL Server Execution Times:
   CPU time = 0 ms,  elapsed time = 0 ms.
SQL Server Execution Times:
   CPU time = 0 ms,  elapsed time = 0 ms.
SQL Server Execution Times:
   CPU time = 0 ms,  elapsed time = 0 ms.
SQL Server Execution Times:
   CPU time = 0 ms,  elapsed time = 0 ms.
SQL Server Execution Times:
   CPU time = 0 ms,  elapsed time = 0 ms.
Table 'EC_POSITIONS'. Scan count 3, logical reads 10450, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
Table 'EC_EMPLOYEE_POSITIONS'. Scan count 2, logical reads 6, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
SQL Server Execution Times:
   CPU time = 37875 ms,  elapsed time = 38295 ms.
SQL Server Execution Times:
   CPU time = 37875 ms,  elapsed time = 38295 ms.
Big diff in server execution times....

Similar Messages

  • I just restored my 24 inch imac and it seems to be running MUCH slower than before. Any Ideas why? thanks in advance for your help!

    I have erased and restored my 24 inch Intel iMac. I have upgraded to the last version of X os. My system is running WAY slower than it was before. Even opening windows seems to lag and the spinning wheel come up for everything. Every task is slow, even typing this! lol
    Here are my specs:
    Model Name:          iMac
      Model Identifier:          iMac8,1
      Processor Name:          Intel Core 2 Duo
      Processor Speed:          2.8 GHz
      Number Of Processors:          1
      Total Number Of Cores:          2
      L2 Cache:          6 MB
      Memory:          4 GB
      Bus Speed:          1.07 GHz
      Boot ROM Version:          IM81.00C1.B00
      SMC Version (system):          1.30f1
    Any ideas would be helpful. Is this a hardware issue?
    Thanks!

    Matt:
    Thanks for the update. It is good to know that the maintenance procedures helped. Regular maintenance and a good backup are key to computer security. Gulliver's article has a suggested schedule. Dr. Smoke's FAQ on Backup and Recovery has excellent information and advice. I part company with him on his insistence on Retrospect, which I have found to be difficult to use. SuperDuper has been shown the best backup software in these tests.
    If you usually leave your computer on or asleep, it is good practice to shut down and start up in Safe Mode occausionally. I do it about once weekly.
    Good luck.
    cornelius
    Message was edited by: cornelius

  • Parameterized queries running much slower than ones with hardcoded values

    Very often there is a huge performance difference when using parameters in a query, compared to running the same code after replacing the parameters with hardcoded values: the parameterized version of the code runs much slower!
    The case is not parameter sniffing as it is not a (compiled) stored proc, but code executed directly from the editor and the performance issue has been observed in different versions of SQL Server (2000 and 2005).
    How is this explained and how can the parameterized queries have similar performance with the hardcoded ones?
    Also, why does this happen in some cases and not always?
    Finally, the same is sometimes the case with stored procs: a very slow running proc speeds up tremendously when running its code directly, instead of calling the procedure --and even faster, according to the previous, when its parameters are replaced with
    hardcoded values 

    >>The case is not parameter sniffing as it is not a (compiled) stored proc, but code executed >>>directly
    from the editor ?>>>and the performance issue has been observed in different >>>versions of SQL Server (2000 and 2005).
    Something like below?
    --SQL Server creates 3 execution plan rather only one
    DBCC FREEPROCCACHE
    GO
    SELECT *
    FROM Sales.SalesOrderHeader
    WHERE SalesOrderID = 56000
    GO
    SELECT * FROM
    AdventureWorks.Sales.SalesOrderHeader WHERE
    SalesOrderID = 56001
    GO
    declare @i int
    set @i = 56004
    SELECT *
    FROM Sales.SalesOrderHeader
    WHERE SalesOrderID = @i
    GO
    select  stats.execution_count AS exec_count, 
    p.size_in_bytes as [size], 
    [sql].[text] as [plan_text]
    from sys.dm_exec_cached_plans p
    outer apply sys.dm_exec_sql_text (p.plan_handle) sql
    join sys.dm_exec_query_stats stats ON stats.plan_handle = p.plan_handle
    GO
    ----This time only (we get parameterization)
    DBCC FREEPROCCACHE
    GO
    EXEC sp_executesql N'SELECT  SUM(LineTotal) AS LineTotal
    FROM Sales.SalesOrderHeader H
    JOIN Sales.SalesOrderDetail D ON D.SalesOrderID = H.SalesOrderID
    WHERE H.SalesOrderID = @SalesOrderID', N'@SalesOrderID INT', 56000
    GO
    EXEC sp_executesql N'SELECT  SUM(LineTotal) AS LineTotal
    FROM Sales.SalesOrderHeader H
    JOIN Sales.SalesOrderDetail D ON D.SalesOrderID = H.SalesOrderID
    WHERE H.SalesOrderID = @SalesOrderID', N'@SalesOrderID INT', 56005
    GO
    select  stats.execution_count AS exec_count, 
    LEFT([sql].[text], 80) as [plan_text]
    from sys.dm_exec_cached_plans p
    outer apply sys.dm_exec_sql_text (p.plan_handle) sql
    join sys.dm_exec_query_stats stats ON stats.plan_handle = p.plan_handle
    GO
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • In CS6, JavaScript Running MUCH Slower than ActionScript

    Hi All,
    I am finding that in CS6, JS code runs MUCH slower than ActionScript code. I don't want to double-post here - Full details may be found where I posted them in the InDesign Scripting forum at  - CS6 JavaScript Running Much Slower than ActionScript, before I realized that this forum might be more appropriate.
    The basic gist of it is that I had a Flex/ActionScript Extension, which I obviously needed to start converting to JavaScript in advance of the next version not supporting ActionScript. I converted 20,000 lines of my business logic code from ActionScript to JavaScript (grrr...) - only to find that it now runs 5 times slower than it did in ActionScript.
    What has been the experience of others who have converted large Extensions from ActionScript to JavaScript?
    I would greatly appreciate any and all suggestions.
    TIA,
    mlavie

    Hi All,
    I am finding that in CS6, JS code runs MUCH slower than ActionScript code. I don't want to double-post here - Full details may be found where I posted them in the InDesign Scripting forum at  - CS6 JavaScript Running Much Slower than ActionScript, before I realized that this forum might be more appropriate.
    The basic gist of it is that I had a Flex/ActionScript Extension, which I obviously needed to start converting to JavaScript in advance of the next version not supporting ActionScript. I converted 20,000 lines of my business logic code from ActionScript to JavaScript (grrr...) - only to find that it now runs 5 times slower than it did in ActionScript.
    What has been the experience of others who have converted large Extensions from ActionScript to JavaScript?
    I would greatly appreciate any and all suggestions.
    TIA,
    mlavie

  • IPhone 4S 10x slower than iMac

    Good day,
    I have iPhone 4S and 27" iMac (Quad i7) on same wifi network, currently both sitting about 6 inches away from Time Capsule on same wifi network (all hardware is up to date with firmware/OS software).  Were both working fine for last couple of days, but today the iPhone is over 10X slower than the iMac.  From SpeedTest.net I'm getting over 30 Mbps down on the iMac, only 1.3 (at best!) from the iPhone.  "4G" on At&t currently getting me 3.5 Mbps down on the iPhone.  Have done hard reboots of phone and Time Capsule, still getting same results. 
    Anyone have any sugguestions as to what might be going on and how to fix it?
    Thanks!

    6" is too close.. wireless stuff should have 2M at least.. having both items so close is not helping at all. Perhaps you are just showing how extreme the problem is and what you are trying to do to fix it.
    If you are on lion, first thing is download the tool utility.. not use the toy.
    http://support.apple.com/kb/DL1482
    Go into the wireless setup.
    Change wireless names, short, no spaces.. pure alphanumeric.
    In advanced change the 5ghz wireless name..
    ie TC24ghz and TC5ghz work fine.. GLFifer's TC 2.4ghz is not.
    Fix and lock the wireless and channels.
    There are exactly 3 non-overlapping wireless channels at 2.4ghz (unless you are in Europe and you can just squeeze in 4), 1, 6, 11 (13 in ETSI).
    Lock to one of those.. test.. then try the next one.
    You can fix the 5ghz as well although it isn't as serious.
    BTW use 5ghz when available as it is much faster.
    Iphone is only 2.4ghz. Having just the iphone and not sharing it with imac will help.

  • Firefox 4.0 freezes, crashes, closes, changes screens, does not respond, and runs 8X SLOWER than 3.6.

    Firefox 4.0 is the WORST browser I have ever seen. It freezes, crashes, closes, changes screens, does not respond, and runs 8X SLOWER than 3.6. Tasks I used to do in 30 minutes, now takes me 40 minutes or more. I went back to 3.6 and immediately had a tremendous improvement.
    Mozilla needs to get rid of this load of lies about a new crap program, and go back to the 3.6 version. Version 4.0 is WORST than any other program I have ever seen.

    The slow / hesitant scrolling problem seems to be an artifact of the database Firefox uses to keep track of where you go, what you do, etc. It uses sqlite databases which get fragmented over time.
    There are several fixes:
    Some are add-ons and work internally, such as Vacuum Places (search the addons for it).
    Some are external. Speedyfox is one I just tried, and found to work quite well. I think it did a better job than Vacuum Places, but requires Firefox to be shut down before it can work properly.
    Find Speedyfox using a web search.

  • My four year old iMac is running much slower than when it was new.  Any suggestions on cleaning out the cob webs?

    My four year old iMac is running much slower than when it was new.  Does anyone have any suggestions on what I can do to "clean it up" and get it running like it used to?

    What year, screen size, CPU speed and amount of RAM installed?
    To find out info about your system,
    Click on the Apple symbol in the upper left of the OS X main menu bar. A drop down menu appears.
    Click About this Mac. A smaller popup window appears. This gives you basic info like what version of OS X your iMac is running, the speed of your iMac's CPU and how much RAM is installed.
    Click on the button that says More Info. A larger window appears giving you a complete overview of your iMac's hardware specs.
    Highlight all of this info and copy/paste all of this into another reply to this post, editing out your iMac's serial number before actually posting the reply.
    This will tell us everything about your iMac so we may begin to help with your iMac issues.
    How full is your Mac's hard drive?
    Locate your iMac's hard drive icon on the OS X desktop. Click the icon once, then use the keyboard key combination Command-I. This will give you additonal info about your iMac's internal hard drive.  
    Post this info in your reply here, also.
    Here are some general tips to keep your Mac's hard drive trim and slim as possible
    You should never, EVER let a conputer hard drive get completely full, EVER!
    With Macs and OS X, you shouldn't let the hard drive get below 15 GBs or less of free data space.
    If it does, it's time for some hard drive housecleaning.
    Follow some of my tips for cleaning out, deleting and archiving data from your Mac's internal hard drive.
    Have you emptied your Mac's Trash icon in the Dock?
    If you use iPhoto, iPhoto has its own trash that needs to be emptied, also.
    If you store images in other locations other than iPhoto, then you will have to weed through these to determine what to archive and what to delete.
    If you use Apple Mail app, Apple Mail also has its own trash area that needs to be emptied, too!
    Delete any old or no longer needed emails and/or archive to disc, flash drives or external hard drive, older emails you want to save.
    Look through your other Mailboxes and other Mail categories to see If there is other mail you can archive and/or delete.
    STAY AWAY FROM DELETING ANY FILES FROM OS X SYSTEM FOLDER!
    Look through your Documents folder and delete any type of old useless type files like "Read Me" type files.
    Again, archive to disc, flash drives, ext. hard drives or delete any old documents you no longer use or immediately need.
    Look in your Applications folder, if you have applications you haven't used in a long time, if the app doesn't have a dedicated uninstaller, then you can simply drag it into the OS X Trash icon. IF the application has an uninstaller app, then use it to completely delete the app from your Mac.
    To find other large files, download an app called Omni Disk Sweeper.
    Download an app called OnyX for your version of OS X.
    When you install and launch it, let it do its initial automatic tests, then go to the cleaning and maintenance tabs and run the maintenance tabs that let OnyX clean out all web browser cache files, web browser histories, system cache files, delete old error log files.
    Typically, iTunes and iPhoto libraries are the biggest users of HD space.
    move these files/data off of your internal drive to the external hard drive and deleted off of the internal hard drive.
    If you have any other large folders of personal data or projects, these should be archived or moved, also, to the optical discs, flash drives or external hard drive and then either archived to disc and/or deleted off your internal hard drive.
    Good Luck!

  • Mac Book Pro with Yosemite run clearly slower than Mavericks

    HI
    I come from other thread about problems whit wifi connection with Yosemite. The great Linc David solved the problem and that has meant thoroughly clean the Mac
    I have a Mac Book Pro 13", early 2011 (!only four years¡) with 8 GB of RAM (the maximum), 2,7 GHz Intel Core i7 processor and whit Yosemite everything it´s significantly slower that with Mavericks: open a word, do a screening...even when typing fast some first characters don´t appear.
    My conclusion it´s clear the max OS that you can install in one Mac Book Pro 13", early 2011,(like me) it´s Maverick. Yosemite clearly slows the mac.
    If someone can convince me otherwise I would be very grateful, because I did not backup before installing the Yosemite. And i don´t know how go back. Here you have the Entrecheck report:
    Thanks in advance
    Jesus
    Problem description:
    Mac Book Pro 13”, early 2011 , 8GB  1333 MHz DDR3 (the max), 2,7 GHz Intel Core i7, run clearly slower with Yosemite than Mavericks
    EtreCheck version: 2.1.8 (121)
    Report generated 13 de abril de 2015, 15:28:48 CEST
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Click for support] links for help with non-Apple products.
    Click the [Click for details] links for more information about that line.
    Hardware Information: ℹ️
        MacBook Pro (13-inch, Early 2011) (Technical Specifications)
        MacBook Pro - model: MacBookPro8,1
        1 2.7 GHz Intel Core i7 CPU: 2-core
        8 GB RAM Upgradeable
            BANK 0/DIMM0
                4 GB DDR3 1333 MHz ok
            BANK 1/DIMM0
                4 GB DDR3 1333 MHz ok
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
        Battery Health: Normal - Cycle count 30
    Video Information: ℹ️
        Intel HD Graphics 3000
            Philips 244E 1920 x 1080 @ 60 Hz
    System Software: ℹ️
        OS X 10.10.3 (14D131) - Time since boot: 11:32:43
    Disk Information: ℹ️
        TOSHIBA MK5065GSXF disk0 : (500,11 GB)
            EFI (disk0s1) <not mounted> : 210 MB
            Macintosh HD (disk0s2) / : 499.25 GB (274.47 GB free)
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
        MATSHITADVD-R   UJ-8A8 
    USB Information: ℹ️
        Apple Inc. FaceTime HD Camera (Built-in)
        Iomega Storage 500,11 GB
            EFI (disk2s1) <not mounted> : 210 MB
            Time Machine (disk2s2) /Volumes/Time Machine : 499.76 GB (293.79 GB free)
        Iomega Storage 500,11 GB
            EFI (disk1s1) <not mounted> : 210 MB
            Copia de Seguridad (disk1s2) /Volumes/Copia de Seguridad : 499.76 GB (316.45 GB free)
        Apple Inc. Apple Internal Keyboard / Trackpad
        Apple Inc. BRCM2070 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Computer, Inc. IR Receiver
        Microsoft Compact Optical Mouse 500
        C3PO USB SMART CARD READER
        Wacom Co.,Ltd. Intuos5 touch S
    Firewire Information: ℹ️
        iomega eGo Rugged FW USB2 800mbit - 800mbit max
            EFI (disk3s1) <not mounted> : 210 MB
            JVT (disk3s2) /Volumes/JVT : 999.86 GB (868.78 GB free)
    Thunderbolt Information: ℹ️
        Apple Inc. thunderbolt_bus
    Configuration files: ℹ️
        /etc/hosts - Count: 30
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Kernel Extensions: ℹ️
            /Applications/VMware Fusion.app
        [not loaded]    com.vmware.kext.vmci (90.6.3) [Click for support]
        [not loaded]    com.vmware.kext.vmioplug.14.1.3 (14.1.3) [Click for support]
        [not loaded]    com.vmware.kext.vmnet (0249.89.30) [Click for support]
        [not loaded]    com.vmware.kext.vmx86 (0249.89.30) [Click for support]
        [not loaded]    com.vmware.kext.vsockets (90.6.0) [Click for support]
            /System/Library/Extensions
        [loaded]    com.Cycling74.driver.Soundflower (1.6.6 - SDK 10.6) [Click for support]
        [not loaded]    com.emu.driver.EMUUSBAudio (1.4.0 - SDK 10.6) [Click for support]
        [loaded]    com.hzsystems.terminus.driver (4) [Click for support]
        [not loaded]    com.macvide.driver.MacVideAudioConnectorDriver (1.0.0) [Click for support]
        [not loaded]    com.roxio.BluRaySupport (1.1.6) [Click for support]
        [not loaded]    com.wacom.kext.wacomtablet (6.3.7 - SDK 10.8) [Click for support]
            /Users/[redacted]/Library/Services/ToastIt.service/Contents/MacOS
        [not loaded]    com.roxio.TDIXController (2.0) [Click for support]
    Startup Items: ℹ️
        MySQLCOM: Path: /Library/StartupItems/MySQLCOM
        Startup items are obsolete in OS X Yosemite
    Problem System Launch Agents: ℹ️
        [killed]    com.apple.CallHistoryPluginHelper.plist
        [killed]    com.apple.CallHistorySyncHelper.plist
        [killed]    com.apple.cloudphotosd.plist
        [killed]    com.apple.coreservices.appleid.authentication.plist
        [killed]    com.apple.EscrowSecurityAlert.plist
        [killed]    com.apple.gamed.plist
        [killed]    com.apple.icloud.fmfd.plist
        [killed]    com.apple.Maps.pushdaemon.plist
        [killed]    com.apple.photolibraryd.plist
        [killed]    com.apple.rcd.plist
        [killed]    com.apple.SafariCloudHistoryPushAgent.plist
        [killed]    com.apple.SafariNotificationAgent.plist
        [killed]    com.apple.security.cloudkeychainproxy.plist
        [killed]    com.apple.telephonyutilities.callservicesd.plist
        14 processes killed due to memory pressure
    Problem System Launch Daemons: ℹ️
        [killed]    com.apple.AssetCacheLocatorService.plist
        [killed]    com.apple.awdd.plist
        [failed]    com.apple.mtrecorder.plist
        [killed]    com.apple.nehelper.plist
        [killed]    com.apple.tccd.system.plist
        [killed]    com.apple.wdhelper.plist
        [killed]    com.apple.xpc.smd.plist
        6 processes killed due to memory pressure
    Launch Agents: ℹ️
        [not loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [loaded]    com.adobe.CS5ServiceManager.plist [Click for support]
        [loaded]    com.divx.dms.agent.plist [Click for support]
        [loaded]    com.divx.update.agent.plist [Click for support]
        [loaded]    com.oracle.java.Java-Updater.plist [Click for support]
        [running]    com.wacom.wacomtablet.plist [Click for support]
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist [Click for support]
        [loaded]    com.adobe.SwitchBoard.plist [Click for support]
        [failed]    com.apple.spirecorder.plist
        [loaded]    com.bombich.ccc.plist [Click for support]
        [loaded]    com.microsoft.office.licensing.helper.plist [Click for support]
        [loaded]    com.oracle.java.Helper-Tool.plist [Click for support]
        [loaded]    com.oracle.java.JavaUpdateHelper.plist [Click for support]
    User Launch Agents: ℹ️
        [loaded]    com.google.keystone.agent.plist [Click for support]
    User Login Items: ℹ️
        Mail    Aplicación Hidden (/Applications/Mail.app)
        Dropbox    Aplicación  (/Applications/Dropbox.app)
    Internet Plug-ins: ℹ️
        JavaAppletPlugin: Version: Java 8 Update 31 Check version
        WacomNetscape: Version: 2.1.0-1 - SDK 10.8 [Click for support]
        OVSHelper: Version: 1.1 [Click for support]
        Default Browser: Version: 600 - SDK 10.10
        WacomTabletPlugin: Version: WacomTabletPlugin 2.1.0.2 [Click for support]
        FlashPlayer-10.6: Version: 17.0.0.134 - SDK 10.6 [Click for support]
        DivX Web Player: Version: 3.2.4.1250 - SDK 10.6 [Click for support]
        Flash Player: Version: 17.0.0.134 - SDK 10.6 [Click for support]
        iPhotoPhotocast: Version: 7.0 - SDK 10.8
        QuickTime Plugin: Version: 7.7.3
        SharePointBrowserPlugin: Version: 14.0.0 [Click for support]
        DirectorShockwave: Version: 12.0.3r133 - SDK 10.6 [Click for support]
    User internet Plug-ins: ℹ️
        Google Earth Web Plug-in: Version: 7.1 [Click for support]
    Safari Extensions: ℹ️
        iMedia Converter Deluxe 
        iTube Studio
    3rd Party Preference Panes: ℹ️
        Flash Player  [Click for support]
        Java  [Click for support]
        MySQL  [Click for support]
    Time Machine: ℹ️
        Skip System Files: NO
        Mobile backups: OFF
        Auto backup: NO - Auto backup turned off
        Volumes being backed up:
        Destinations:
            Time Machine [Local]
            Total size: 499.76 GB
            Total number of backups: 2
            Oldest backup: 2012-11-25 14:45:01 +0000
            Last backup: 2012-11-26 22:08:06 +0000
            Size of backup disk: Excellent
                Backup size 499.76 GB > (Disk size 0 B X 3)
    Top Processes by CPU: ℹ️
             9%    mds
             5%    WindowServer
             0%    fontd
             0%    taskgated
             0%    com.apple.ifdreader
    Top Processes by Memory: ℹ️
        412 MB    Finder
        172 MB    Safari
        137 MB    Mail
        86 MB    com.apple.WebKit.WebContent
        69 MB    WindowServer
    Virtual Memory Information: ℹ️
        2.92 GB    Free RAM
        1.95 GB    Active RAM
        762 MB    Inactive RAM
        1.64 GB    Wired RAM
        21.92 GB    Page-ins
        212 MB    Page-outs
    Diagnostics Information: ℹ️
        Apr 13, 2015, 04:20:54 AM    /Library/Logs/DiagnosticReports/BDLDaemon_2015-04-13-042054_[redacted].cpu_reso urce.diag [Click for details]
        Apr 13, 2015, 03:55:58 AM    /Users/[redacted]/Library/Logs/DiagnosticReports/cloudd_2015-04-13-035558_[reda cted].crash
        Apr 13, 2015, 03:55:31 AM    /Library/Logs/DiagnosticReports/com.apple.AmbientDisplayAgent_2015-04-13-035531 _[redacted].crash
        Apr 13, 2015, 03:54:03 AM    Self test - passed
        Apr 13, 2015, 03:53:27 AM    /Library/Logs/DiagnosticReports/BDLDaemon_2015-04-13-035327_[redacted].cpu_reso urce.diag [Click for details]
        Apr 13, 2015, 03:33:24 AM    /Library/Logs/DiagnosticReports/WacomTabletDriver_2015-04-13-033324_[redacted]. crash
        Apr 13, 2015, 01:03:43 AM    /Library/Logs/DiagnosticReports/BDLDaemon_2015-04-13-010343_[redacted].cpu_reso urce.diag [Click for details]
        Apr 13, 2015, 12:59:40 AM    /Library/Logs/DiagnosticReports/AntivirusforMac_2015-04-13-005940_[redacted].cp u_resource.diag [Click for details]
        Apr 12, 2015, 10:28:40 PM    /Library/Logs/DiagnosticReports/WacomTabletDriver_2015-04-12-222840_[redacted]. crash
        Apr 12, 2015, 07:58:07 PM    /Library/Logs/DiagnosticReports/System Preferences_2015-04-12-195807_[redacted].hang

    In fact many Mac forums talk about change the hard disk mechanical to other of solid state as solution for MacBook Pro.

  • Anyone else? CS4 running much slower than CS3?

    I just upgraded to CS4 from CS3. All of the applications are running much, much slower than CS3, particularly InDesign. My computer is literally fresh out of the box; specs below. Software and patches up to date. Thinking of uninstalling CS4 and reverting back to CS3. Any suggestions/feedback?
    MacBook Pro 15"
    2.66GHz Intel Core 2 Duo processor
    4GB memory
    320GB 5400-rpm hard drive
    NVIDIA GeForce 9600M GT graphics processor with 256MB
    1440 by 900 pixels
    Snow Leopard OX
    Purchased CS4 Master Collection. Other software installed includes iLife, iWork, Office for Mac.

    I'm not using In Design yet, but for Photoshop and Acrobat my sense is that they are fast or faster than CS3, and Snow Leopard has reduced the launch time for all my apps compared with Leopard.
    Yes there are issues with running Adobe apps with Snow Leopard, but some of them are the same issues when running CS3 apps with Leopard--and in any event, these are, I believe, all crashing bugs, not things that slow down responsiveness. I personally have had only a few problems with Design Std CS4 apps + Snow Leopard.

  • CS6 JavaScript Running Much Slower than ActionScript

    Dear All,
    In advance of the next version of InDesign CC, which will only support HTML5 and JavaScript, I converted all of my Extension's business logic from ActionScript to JavaScript - about 20,000 lines of code.
    I am using CS6 to run my Extension, and I call my JavaScript methods from within legacy Flex/ActionScript event-handler code using this methodology:
    [Embed(source="MyJSModule1.jsx", mimeType= "application/octet-stream" )]
    private static var _myJSModule1:Class;
    [Embed(source="MyJSModule2.jsx", mimeType= "application/octet-stream" )]
    private static var _myJSModule2:Class;
    _interface = HostObject.getRoot(HostObject.extensions[0]);
    public static function Initialize()
    _interface.eval(new _myJSModule1.toString());
    _interface.eval(new _myJSModule2.toString());
    _interface.myJSMethod();
    I have found that my InDesign Extension runs about 5 times slower in JavaScript than it did in ActionScript.
    Posts I read on the web seemed to indicate that JS would only be about 30% slower.
    Would the upcoming V8-based and Node.js-supporting environment be any faster?
    I really, really need help with this.
    TIA,
    mlavie

    Hmm,
    at that project/code size you get at plenty points where things matter that would be irrelevant in smaller scripts. A few years ago I extended and re-architectured a similar project, by thorough optimizations we got an speed increase of roughly tenfold, of course partially eaten up by new features.
    For the beginning: rather than issuing 80 evals, for deployment I'd compile such an enormous pile of sources into a single file. For debugging, #include is much more fun.
    As you mention argument passing of large xml, that's one area where ExtendScript can seriously slow down. Besides you'll probably find a size limit of about 64k for the underlying XML. We used InDesign document XML for working data, while smaller configuration data was parsed into js objects as soon as possible. I wrote a JSX abstraction layer that would work on either kind of XML.
    Next problem - number of prototype slots. It definitely makes a difference if you have too much, I partitioned objects into cross-linked clusters, similar to the plugin object model (boss classes), the whole enchilada supported by an underlying framework that generated JSX collections etc. by a few declarations, roughly the equivalent to templates in other languages.
    At least you're using prototypes - one really big issue with ExtendScript is the explosion of object allocations when you apply the typical closure-based JavaScript style from web programming. Eliminating them was a very big effort in our rewrite, but also gave a pretty good improvement. At least ExtendScript can produce allocation statistics, use them. Also use them to find and eliminate circular link object leaks etc. A while ago I wrote a diff utility that extends $.summary(), InDesign Server also has some goodies.
    Have you noticed ESTK's profiler? Unfortunately it just gave up at our code size, probably it will also for yours. Instead I used an own profiler with several additions, e.g. I could apply the profiler selectively to some modules while already optimized modules were skipped. It really helps to know your candidates when management pressures for "quick wins" ... Where is most absolute computation time burnt, or what methods are invoked a couple 10000 times too often for your gut feeling. Again, eliminate dead code and thus reduce prototype/object slot count. When your central class has 100s properties and matching get/set methods, eliminating them one by one produces measurable improvements.
    Of course I also tracked down some offending statements where the same value was assigned over and over again causing severe text recomposition while nothing was actually changed ... You can only find such problems with exact measurements.
    Other areas of fun: under the hood (at C++ level) every temporary text expression is backed by an enormous aggregation "suite", there are many things you can do wrong there. For example these things just pile up and are rarely purged, therefor it has become common wisdom to do an occasional save() for lengthy scripts.
    Again at the XML side: if you do severe document XML (we did), there are some circumstances where text attributes will get lost/ignored. There are ways to speed up expressions underlying references to document XML, and so forth. To know when to rebuild the XML expressions or when they can be reused is a science for itself. Same goes for other objects, as you already mention getElements(). Sometimes it helps, sometimes it is just a waste of execution time.
    As you mention the advantage of SSDs: How frequently do you dump those jsx sources into ExtendScript? If you currently use the "main" session (is that possible for HTML extensions at all?), utilize persistent sessions instead - when you have eliminated your object leaks.
    There are plenty more optimizations, I probably should write a book - to be sold in about 5 copies. Unfortunately the strongest advice in its preface would be to not use ExtendScript/JavaScript at all for large scale projects, because they turn into a maintenance nightmare where other languages catch errors on compile time. Dependent on client preference I'd probably turn to Java or do the whole thing in C++, at increasing code size development speed will be roughly on par.

  • Malloc()/free() performance in JNI C code 9-10x slower than C application

    I posted this as a bug report, but thought it might be worth also seeking advice here.
    I'm working on a product under Windows which is integrated using JNI to a 3rd party file format conversion C++ library which uses a lot of new/delete (malloc/free) calls. I found the performance to be dramatically slower when running under Java compared to a standalone executable.
    After many steps, I eventually wrote a small C program which simply loops over many malloc/free calls for 16 bytes, and took an average time. I found when I run this C program in a cmd.exe window, it runs about 9-10 times faster than if it is executed via JNI (Java calls the routine just once).
    I can only guess that the JVM is somehow over-riding malloc/free, but this is an extremely high performance penalty. I found under Java 6, the JNI code runs about 5x slower, which is an improvement, but still very slow.
    Does anyone know if this behaviour is expected?
    Cheers,
    David
    EXPECTED VERSUS ACTUAL BEHAVIOR :
    EXPECTED -
    I would have expected that the performance of malloc/free to be the same regardless of whether my native code is executing inside a JNI call, or as an ordinary program.
    ACTUAL -
    For Java 1.5.0_0-b03, some example timings in milliseconds (Pentium 4 1.8GHz):
    0.004461
    0.004494
    0.004498
    For Java 1.6.0-b105:
    0.002367
    0.002375
    0.002366
    When run as a process in a cmd.exe window:
    0.000487
    0.000497
    0.000489
    REPRODUCIBILITY :
    This bug can be reproduced always.
    ---------- BEGIN SOURCE ----------
    Java code is just:
    package com.nuix;
    public class Test
        private static native void doit();
        public static void main(String[] args)
            System.loadLibrary("test.dll");
            doit();
    }C code is as follows (#define JAVA when building test.dll).
    #include <stdio.h>
    #include <stdlib.h>
    #include <windows.h>
    #define COUNT 10000000
    void doit()
        DWORD t1 = GetTickCount();
        for (int i = 0; i < COUNT; i++)
            int *data = (int *)malloc(16);
            data[0] = i;
            free(data);
        DWORD t2 = GetTickCount();
        fprintf(stderr, "Malloc average time msec == %f\r\n", (double)(t2 - t1) / (double)(COUNT));
        fflush(stderr);
    #ifdef JAVA
    #include <jni.h>
    #ifdef __cplusplus
    extern "C" {
    #endif
    JNIEXPORT void JNICALL Java_com_nuix_Test_doit
      (JNIEnv *env, jclass klass)
        doit();
    #ifdef __cplusplus
    #endif
    #endif
    int main()
        doit();
    }

    The speed of which Java executes is highly dependent on what device you are running it on. For example we have noted that a number of our J2ME programs run very slowly on many Motorola implementations, however that exact same code runs increadible fast on Nokia phones.
    You can't really make a broad sweeping statment like C# is faster than Java and vice versa. All you can really say is that on this specific device with this version of the VM running this application, C# is faster. Changing any of those parameters may result in a significantly different result.
    Really it comes down to what does the device manufacturer really want to support. Nokia has put a lot of effort into their J2ME platforms. As a result, their VM implementations are getting better (and faster) with every release. Other manufacturers are not making this same kind of commitment and as a result, their handsets are less optimal for running J2ME applications.
    So I guess the short answer is. Your question cannot be answered until you identify the version of the device, and the specific version of the VM you ran your test on.
    By the way, if you ran it on an Emulator, all bets are off. Performance on the Emulator and performance are usually different and can be significantly different.
    Cheers,
    Angus

  • 1.4 version of tool runs MUCH slower than 1.3???

    Hi!! I have a desktop application that I had made using 1.3. I've now successfully upgrade to 1.4.2, however I've noticed significantly slower performance with the newer version. Has anyone else experienced this? What can be done to remedy the situation??
    Katie

    This is serious issue. The repaint capability is in the order of minute vs seconds on Microsoft platforms running the 1.4 version. This is causing serious customer issues.

  • LRCC is running much slower than LR5

    I just upgraded my Lightroom 5.7 stand-alone to Lightroom CC and it is much slower.  I have a good laptop that is less than three years old, with 8GB RAM and a SSD.  What's up?   Thanks in advance!

    Read this: GPU notes for Lightroom CC (2015).

  • Macbook Pro 13" running significantly slower than usual!

    I've had my Macbook Pro 13" for around 9 months now and It has been running great up until recently, where it seems to be running really slowly.
    It takes quite a while to boot, and it seems that all graphics aren't loading correctly or quickly.
    While opening Lunchpad, the icons can take up to 45 seconds to load, and Youtube does not seem to load correctly.
    Even repairing disk permissions can take up to 1hr long.
    I'm running the latest OS and all software is up to date. Ive only taken up around 30% of my hard drive space some of which has been partitioned for bootcamp.
    Any ideas as to why this is happening would be appreciated.

    There are so many reasons for a Mac starting to slow down that it would take forever to figure it out.  Take a look at these articles, it should help (it has for me):
    http://www.maclife.com/article/feature/25_ways_speed_your_mac
    http://www.thexlab.com/faqs/performance.html
    Make sure Flash is up-to-date since it is a horrible drain on system performance.

  • Java Running Program Slower Than Partner

    I have a very peculiar issue with a program I've made for a class. We were allowed to work with a partner on this project, and I was optimizing the code to make it run faster. I got to a certain point where I couldn't think of anything else to do, and it was running at about 2.5 seconds. I added it to Dropbox for my partner to download and check out, and when he ran it, he got a time of 0.5 seconds. Same exact code.
    We've tried a few things such as re-uploading from both ends to see if there was some difference. I've re-installed eclipse and tried a different version and re-installed the latest JDK. I downloaded the Eclipse IDE for Java developers. That didn't solve the issue. So then I tried compiling the program with javac from the command prompt and running the program that way. This still gave me a time of around 2.5 seconds. I ran the Windows Experience index to see if my computer could have something wrong with it, but it came up with numbers slightly better than before. So it can't be anything wrong with my actual system. I haven't noticed a decrease in performance. So this narrows everything down to the Java environment itself.
    We know the program works. It's already been submitted, graded, and returned and like I said, it runs extremely efficiently on my partner's computer. I just can't think of ANY REASON at all this program is running more slowly on my computer. Have any of you encountered an issue like this? I don't want anything to plague me for future projects.
    Thanks for any ideas or assistance!
    -Cole

    The fact that run times were supposed to be a target of around 0.5 seconds for this project is just what concerns me. Other people have achieved that time. Obviously their code is different, but the point I was trying to get across is that I wouldn't be concerned if it were a decimal difference. What concerns me is that it's seconds. You're correct. I'm using an Alienware computer and my partner has the Mac, but the difference should never be that huge. It only gets worse as we try to run more data.
    The timer, like you suspected, is clocked from the system timer Java uses. We get the time when it begins and ends and subtract the difference. This is built into the program's main and is printed into an output file at the end.
    I understand the thought that the systems are completely different, and I wouldn't be so worried if it were not for the comparison of data with our computers and other classmates. We have statistics other than time from the program that line up with the numbers we should expect based on the professor's approval of students output. So when those statistics are the same and the ONLY difference is the run time, that's what concerns me. And I know it's not an issue of the timer being started incorrectly because you can easily see the difference in performance when ran.
    Obviously this won't mean much, but just note as the numbers increase, so do the time differences. However, the statistics are relatively the same. (The files are generated randomly)
    Here's some sample data:
    Partner's Output:
    bin20.txt, with 20 blocks and 10 buffers...
    Cache hits: 1398437
    Cache misses: 9973
    Disk reads: 9973
    Disk writes: 9310
    Run time: 536ms
    My Output:
    bin20.txt, with 20 blocks and 10 buffers...
    Cache hits: 1397557
    Cache misses: 9986
    Disk reads: 9986
    Disk writes: 9307
    Run time: 7667ms
    Partner's Ouput:
    bin10.txt, with 10 blocks and 5 buffers...
    Cache hits: 647388
    Cache misses: 5866
    Disk reads: 5866
    Disk writes: 5462
    Run time: 315ms
    My Output:
    bin10.txt, with 10 blocks and 5 buffers...
    Cache hits: 646955
    Cache misses: 5891
    Disk reads: 5891
    Disk writes: 5449
    Run time: 4558ms
    Hopefully this information helps clear up some things. Again, I'm just kind of baffled about this, and I don't think it's simply a problem of having different systems.

Maybe you are looking for