Optimizing performance question

I understand that the best practice for use of images is to resize, crop, and rotate images to the disired size and rotation before importing them into iBooks Author. Does that apply to a situation when you are re-using the same image several times in the project when you will be flipping or rotating that image in other sections? In other words, is it better to import the same image multiple times or to copy and past a previously imported image and use the rotate and resize commands within iBooks Author. Does this make a difference as far as size of the document and/or speed?
Thanks!

Your book is just a zip file - you can change the suffix, unpack it, drill down and confirm for yourself if need be
Good luck w/your books!
Ken

Similar Messages

  • Copying arrays, performance questions

    Hello there
    The JDK offers several ways to copy arrays so I ran some experiments to try and find out which would be the fastest.
    I was measuring the time it takes to copy large arrays of integers. I wrote a program that allocates arrays of various sizes, and copy them several times using different methods. Then I measured the time each method took using the NetBeans profiler and calculated the frequencies.
    Here are the results I obtained (click for full size):  http://i.share.pho.to/dc40172a_l.png
    (what I call in-place copy is just iterating through the array with a for loop and copying the values one by one)
    I generated a graph from those values:  http://i.share.pho.to/049e0f73_l.png
    A zoom on the interesting part: http://i.share.pho.to/a9e9a6a4_l.png
    According to these results, clone() becomes faster at some point (not sure why). I've re-ran these experiments a few times and it seems to always happen somewhere between 725 and 750.
    Now here are my questions:
    - Is what I did a valid and reliable way to test performances, or are my results completely irrelevant? And if it's not, what would be a smarter way to do this?
    - Will clone be faster than arraycopy past 750 items on any PC or will these results be influences by other factors?
    - Is there a way to write a method that would copy the array with optimal performances using clone and arraycopy, such that the cost of using it would be insignificant compared to systematically using one method over the other?
    - Any idea why clone() can become faster for bigger arrays? I know arraycopy is a native method, I didn't try to look into what it does exactly but I can't imagine it's doing anything more complicating than copying elements from one location in the memory to another... How can another method be faster than that?
    (just reminding I'm copying primitives, not objects)
    Thanks!
    Message was edited by: xStardust! Added links, mr forum decided to take away my images

    yeh, everyone thinks that at some point. it relies,
    however, on you being perfect and knowing everything
    in advance, which you aren't, and don't (no offence,
    the same applies to all of us!). time and time again,
    people do this up-front and discover that what they
    thought would be a bottleneck, isn't. plus,
    the JVM is much smarter at optimizing code than you
    think: trust it. the best way to get good performance
    out of your code is to write simple, straightforward
    good OO code. JVMs are at a point now where they can
    optimize java to outperform equivalent C/C++ code
    (no, really) but since they're written by human
    beings, who have real deadlines and targets, the
    optimizations that make it into a release are the
    most common ones. just write your application, and
    then see how it performs. trust me on this
    have a read of
    [url=http://java.sun.com/developer/technicalArticles/I
    nterviews/goetz_qa.html]this for more info anda chance to see where I plagiarized that post from :-)
    Thanks for that link you gave me :)
    Was usefull to read.
    About time and money of programming, that is not really an issue for me atm since i'm doing this project for a company, but through school (it's like working but not for money).
    Of course it should not last entirely long but I got time to figure out alot of things.
    For my next project I will try to focus some more on building first, optimizing performance later (if it can be done with a good margin, since it seems the biggest bottlenecks are not the code but things outside the code).
    @promethuuzz
    The idea was to put collection objects (an object that handles the orm objects initialized) in the request and pass them along to the jsp (this is all done through a customized mvc model).
    So I wanted to see if this method was performance heavy so I won't end up writing the entire app and finding out halve of it is very performance heavy :)

  • Coldfusion 11 SSL Certs applied - The APR based Apache Tomcat library which allows optimal performance in production environments,

    Coldfusion 11
    Windows Server 2012 R2
    Both the Coldfusion admin and additonal site work fine on HTTP.
    As soon as I attempt to enable SSL websockets and install SSL certs, the Coldfusion 11 Application service will not start. I followed the steps below....
    Coldfusion 11 - Web Sockets via SSL
    The Coldfusion-error.log shows
    Jan 26, 2015 3:21:23 PM org.apache.catalina.core.AprLifecycleListener init
    INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path
    Server was a cloned VM of the test server with developer copy of CF11, but license has been purchased and applied. SSL certs have been imported successfully, paths are correct in CF Admin to the cert file etc.
    Do I need to install another version of Coldfusion to get around this issue or is there a download update I need to apply?
    If i reconfig the \cfusion\runtime\conf\server.xml to comment out the SSL sections it works fine.
    Any assistance welcome - I can't allow this site to made publicly available with using SSL.
    SM

    @Scott, first are you running update 3? If so, let’s clarify at the outside that, as that bug report (you point to) does indicate in the notes below it, there is a fix for a problem where this feature broke in that release.  And as it notes, you can email [email protected] to request the fix (referring to that bug), or you can wait for it to be released publicly as part of a larger set of fixes.
    If you are NOT on update 3, or you may apply the fix and find things still don’t work, I would wonder about a few things, from what you’ve described.
    First, you say that the CF service won’t start, and you offer some lines from the ColdFusion-error log. Just to be clear, those particular error messages are common and nothing to worry about. They definitely do NOT reflect any reason CF doesn’t start. But are you confirming that that time (in the log lines) is in fact the time that you had started CF, when it would not start? I’d suspect not.
    Look instead in the coldfusin-out.log. What does THAT log show at the time you try to start CF and it won’t start? You may find something else there. (And since you refer to editing the server.xml file, you may the log complains that because of an error in the XML it can’t “parse” the file. It’s worth checking.
    You say also that you have confirmed that “paths are correct in CF Admin to the cert file”. What path are you referring to? There’s no page in the CF admin that points to the CACERTS file in which the certs are stored. Do you perhaps mean on the “system info” or “settings summary” page? Even so there’s still no line in there which refers to the “cert file”.
    Instead—and this could be a part of your problem—the cert file is simply found WITHIN the directory where CF’s pointed to to find its JVM. Wherever THAT is, is where you need to put any certificates. So take a look at the CF Admin, either in the ”java and jvm” page (and the value of its “Java Virtual Machine Path”), or in the “settings summary” or “system information” pages and their value for “Java Home”. Is that something like \coldfusion11\jre? Or something like \Java\jdk1.7.0_71\jre? Whichever it is, THAT’s where you need to put the certs, within there (in its \lib\security folder).
    Finally, when you say that if you “comment out the SSL sections  it works fine”, do you mean that a) CF comes up and b) some example code calling your socket works, as long as you don’t use SSL?
    To be clear, no, you don’t need any other version of CF11 to get websockets to work. But if you are on update 3, that may be the simple problem. Let us know how it goes for you with this info.
    /charlie

  • I have a 27" iMac and want to play Windows games with optimal performance.  what do I need to do?

    I have a 27" iMac and want to play Windows games with optimal performance.  What do I need to do?

    Install windows with Bootcamp. http://www.apple.com/support/bootcamp/

  • Simple performance question

    Simple performance question. the simplest way possible, assume
    I have a int[][][][][] matrix, and a boolean add. The array is several dimensions long.
    When add is true, I must add a constant value to each element in the array.
    When add is false, I must subtract a constant value to each element in the array.
    Assume this is very hot code, i.e. it is called very often. How expensive is the condition checking? I present the two scenarios.
    private void process(){
    for (int i=0;i<dimension1;i++)
    for (int ii=0;ii<dimension1;ii++)
      for (int iii=0;iii<dimension1;iii++)
        for (int iiii=0;iiii<dimension1;iiii++)
             if (add)
             matrix[i][ii][iii][...]  += constant;
             else
             matrix[i][ii][iii][...]  -= constant;
    private void process(){
      if (add)
    for (int i=0;i<dimension1;i++)
    for (int ii=0;ii<dimension1;ii++)
      for (int iii=0;iii<dimension1;iii++)
        for (int iiii=0;iiii<dimension1;iiii++)
             matrix[i][ii][iii][...]  += constant;
    else
    for (int i=0;i<dimension1;i++)
    for (int ii=0;ii<dimension1;ii++)
      for (int iii=0;iii<dimension1;iii++)
        for (int iiii=0;iiii<dimension1;iiii++)
           matrix[i][ii][iii][...]  -= constant;
    }Is the second scenario worth a significant performance boost? Without understanding how the compilers generates executable code, it seems that in the first case, n^d conditions are checked, whereas in the second, only 1. It is however, less elegant, but I am willing to do it for a significant improvement.

    erjoalgo wrote:
    I guess my real question is, will the compiler optimize the condition check out when it realizes the boolean value will not change through these iterations, and if it does not, is it worth doing that micro optimization?Almost certainly not; the main reason being that
    matrix[i][ii][iii][...]  +/-= constantis liable to take many times longer than the condition check, and you can't avoid it. That said, Mel's suggestion is probably the best.
    but I will follow amickr advice and not worry about it.Good idea. Saves you getting flamed with all the quotes about premature optimization.
    Winston

  • BPM performance question

    Guys,
    I do understand that ccPBM is very resource hungry but what I was wondering is this:
    Once you use BPM, does an extra step decreases the performance significantly? Or does it just need slightly more resources?
    More specifically we have quite complex mapping in 2 BPM steps. Combining them would make the mapping less clear but would it worth doing so from the performance point of view?
    Your opinion is appreciated.
    Thanks a lot,
    Viktor Varga

    Hi,
    In SXMB_ADM you can set the time out higher for the sync processing.
    Go to Integration Processing in SXMB_ADM and add parameter SA_COMM CHECK_FOR_ASYNC_RESPONSE_TIMEOUT to 120 (seconds). You can also increase the number of parallel processes if you have more waiting now. SA_COMM CHECK_FOR_MAX_SYNC_CALLS from 20 to XX. All depends on your hardware but this helped me from the standard 60 seconds to go to may be 70 in some cases.
    Make sure that your calling system does not have a timeout below that you set in XI otherwise yours will go on and finish and your partner may end up sending it twice
    when you go for BPM the whole workflow
    has to come into action so for example
    when your mapping last < 1 sec without bpm
    if you do it in a BPM the transformation step
    can last 2 seconds + one second mapping...
    (that's just an example)
    so the workflow gives you many design possibilities
    (brigde, error handling) but it can
    slow down the process and if you have
    thousands of messages the preformance
    can be much worse than having the same without BPM
    see below links
    http://help.sap.com/bp_bpmv130/Documentation/Operation/TuningGuide.pdf
    http://help.sap.com/saphelp_nw04/helpdata/en/43/d92e428819da2ce10000000a1550b0/content.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/3.0/sap%20exchange%20infrastructure%20tuning%20guide%20xi%203.0.pdf
    BPM Performance tuning
    BPM Performance issue
    BPM performance question
    BPM performance- data aggregation persistance
    Regards
    Chilla..

  • EPM Performance Questions

    Hi Experts
    We have some concerns over performance in our BPC 10 (BW SP8, EPM SP13) performance.  I wanted to post a message here to hopefully get a better understanding of areas where we are currently uncertain and measures we could perhaps look at in order to improve.
    1. Every time we transport once of our BPC Input Schedules / Reports, we need to 'Save it Down' in the environment where it has been transported.  This procedure involves opening the report, refreshing the data in the report and then saving it.  If we don't do this, the report will still load but in a time of 10+ minutes rather than the 3 minutes we expect.  Any ideas why this is ?
    2. We experience improved performance when someone has run a particular report with identify selections.  I expect this is to do with the OLAP caching on the BW server.  Has anyone worked with this cache in order to improve performance ?  Is this cache redundant after every write back to the cube / model ?
    3. Our single model is getting rather large (50M records) and I'm looking into options for archiving / improving the setup.  Is 50M a cause for concern ?  I see a message on the boards earlier with someone having billions of records so perhaps not....
    4. Finally, I notice our reports / input schedules hang in the same place every time they are run.  Can anyone advise what can be checked ?  We are not using any Member Formulas
    Thanks in advance for any help / guidance you can offer.
    Ian

    yeh, everyone thinks that at some point. it relies,
    however, on you being perfect and knowing everything
    in advance, which you aren't, and don't (no offence,
    the same applies to all of us!). time and time again,
    people do this up-front and discover that what they
    thought would be a bottleneck, isn't. plus,
    the JVM is much smarter at optimizing code than you
    think: trust it. the best way to get good performance
    out of your code is to write simple, straightforward
    good OO code. JVMs are at a point now where they can
    optimize java to outperform equivalent C/C++ code
    (no, really) but since they're written by human
    beings, who have real deadlines and targets, the
    optimizations that make it into a release are the
    most common ones. just write your application, and
    then see how it performs. trust me on this
    have a read of
    [url=http://java.sun.com/developer/technicalArticles/I
    nterviews/goetz_qa.html]this for more info anda chance to see where I plagiarized that post from :-)
    Thanks for that link you gave me :)
    Was usefull to read.
    About time and money of programming, that is not really an issue for me atm since i'm doing this project for a company, but through school (it's like working but not for money).
    Of course it should not last entirely long but I got time to figure out alot of things.
    For my next project I will try to focus some more on building first, optimizing performance later (if it can be done with a good margin, since it seems the biggest bottlenecks are not the code but things outside the code).
    @promethuuzz
    The idea was to put collection objects (an object that handles the orm objects initialized) in the request and pass them along to the jsp (this is all done through a customized mvc model).
    So I wanted to see if this method was performance heavy so I won't end up writing the entire app and finding out halve of it is very performance heavy :)

  • OWA doesn't work on all servers! "Use the following link to open this mailbox with optimal performance:"

    Hi All,
    I am having a problem with OWA. I have 3  2007 exchange servers on 3 different sites on the same AD Forest. My emails work fine internally and externally with outlook. I have setup Outlook Anywhere on Server No1 with external email address:
    https://mail.company.com/owa
    Everybody can login fine.
    I have setup OWA on the other 2 servers with the same address, but when a user from that site tries to login gets the following message:
    "Use the following link to open this mailbox with optimal performance:"
    So the can't see their emails!
    Please help me out as I am trying to solve it for days now and I can't find out what is wrong! 
    Thank you All!
    Akitan

    Hi Akitan,
    From your description, CAS server 1 is exposed to the Internet. Other two non-Internet-facing Active Directory sites rely on the Internet-facing Client Access server 1 to proxy all pertinent requests from external clients. If I have misunderstood your concern,
    please let me know.
    In your case, I recommend you ensure that Integrated Windows authentication for OWA virtual directory is enabled.
    What's more, here is a helpful thread for your reference.
    CAS Proxy between sites of OWA /Exchange Virtual directory
    http://social.technet.microsoft.com/Forums/exchange/en-US/895a304f-8fb1-4909-8b48-480a7303afd4/cas-proxy-between-sites-of-owa-exchange-virtual-directory?forum=exchangesvrclientslegacy
    Besides, if your issue is urgent, you can connect Microsoft Support. For your convenience:
    https://support.microsoft.com/?ln=en-us&wa=wsignin1.0
    Anyway, if you still want to solve your issue on the forum, I will continue to help you.
    If you need further assistance, please feel free to let me know.
    Best regards,
    Amy
    Amy Wang
    TechNet Community Support

  • Swing performance question: CPU-bound

    Hi,
    I've posted a Swing performance question to the java.net performance forum. Since it is a Swing performance question, I thought readers of this forum might also be interested.
    Swing CPU-bound in sun.awt.windows.WToolkit.eventLoop
    http://forums.java.net/jive/thread.jspa?threadID=1636&tstart=0
    Thanks,
    Curt

    You obviously don't understand the results, and the first reply to your posting on java.net clearly explains what you missed.
    The event queue is using Thread.wait to sleep until it gets some more events to dispatch. You have incorrectly diagnosed the sleep waiting as your performance bottleneck.

  • Not getting optimal performance out of premiere Pro CC with New Mac Pro

    I have just purchased a new mac pro- 8core 64gb of RAM, and D700 graphics cards. I say I'm not getting full optimized performance because my machine will not playback 4k footage at full resolution. Should it? I looked into the package contents of Premiere Pro and notive that the D700 graphics cards were not listed under supported cards. If I type those in will that fix the issue?

    No it wont. No editing software out right now will play back 4K media such as Red at full resolution. The latency for processing the codecs is just to high right now. Redcine X Pro can with Red if you have the GPU accelerated Debayering version. Until that decoding is done on the GPU's in the editing applications, you wont see the full res playback most likely. I wouldn't expect the Red Debayering done at the GPU's in Adobe for a while since Red is still refining it.
    Eric
    ADK

  • Xcontrol: performance question (again)

    Hello,
    I've got a little performance question regarding xcontrols. I observed rather high cpu-load when using xcontrols. To investigate it further, I built a minimal xcontrol (boolean type) which only writes the received boolean-value to a display-element in it's facade (see attached example). When I use this xcontrol in a test-vi and write to it with a rate of 1000 booleans / second, I get a cpu-load of about 10%. When I write directly to a boolean display element instead of the xcontrol,I have a load of 0 to 1 %. The funny thing is, when I emulate the xcontrol functionality with a subvi, a subpanel and a queue (see example), I only have 0 to 1% cpu-load, too.
    Is there a way to reduce the cpu-load when using xcontrols? 
    If there isn't and if this is not a problem with my installation but a known issue, I think this would be a potential point for NI to fix in a future update of LV.
    Regards,
    soranito
    Message Edited by soranito on 04-04-2010 08:16 PM
    Message Edited by soranito on 04-04-2010 08:18 PM
    Attachments:
    XControl_performance_test.zip ‏60 KB

    soranito wrote:
    Hello,
    I've got a little performance question regarding xcontrols. I observed rather high cpu-load when using xcontrols. To investigate it further, I built a minimal xcontrol (boolean type) which only writes the received boolean-value to a display-element in it's facade (see attached example). When I use this xcontrol in a test-vi and write to it with a rate of 1000 booleans / second, I get a cpu-load of about 10%. When I write directly to a boolean display element instead of the xcontrol,I have a load of 0 to 1 %. The funny thing is, when I emulate the xcontrol functionality with a subvi, a subpanel and a queue (see example), I only have 0 to 1% cpu-load, too.
    Okay, I think I understand question  now.  You want to know why an equivalent xcontrol boolean consumes 10x more CPU resource than the LV base package boolean?
    Okay, try opening the project I replied yesterday.  I don't have access to LV at my desk so let's try this. Open up your xcontrol facade.vi.  Notice how I separated up your data event into two events?  Go the data change vi event, when looping back the action, set the isDataChanged (part of the data change cluster) to FALSE.  While the data input (the one displayed on your facade.vi front panel), set that isDataChanged to TRUE.  This is will limit the number of times facade will be looping.  It will not drop your CPU down from 10% to 0% but it should drop a little, just enough to give you a short term solution.  If that doesn't work, just play around with the loopback statement.  I can't remember the exact method.
    Yeah, I agree xcontrol shouldn't be overconsuming system resource.  I think xcontrol is still in its primitive form and I'm not sure if NI is planning on investing more times to bug fix or even enhance it.  Imo, I don't think xcontrol is quite ready for primetime yet.   Just too many issues that need improvement.
    Message Edited by lavalava on 04-06-2010 03:34 PM

  • What does it mean by move data to SD card for optimal performance?

    Hello! I'm having a lot of trouble with my BlackBerry Curbe 9300. A message keeps popping up saying 'Move data to SD card for optimal performance'. The problem is I don't know what data it's referring to, my app memory has around 34.5mb, I deleted all of my browsing history, I don't have any text messages or emails saved to my phone. I will thank anyone who will be able to help me solve this issue.

    Read this:
    KB14320 How to maximize free space and battery power on the BlackBerry smartphone
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Optimizing Performance

    I am having a problem with my program as I am not getting the
    desired frame rate due to all the code that is getting executed per
    tick. So I have some questions about director and lingo as to which
    way actually executes faster.
    1. Multiple
    ExitFrame calls vs a single
    ExitFrame call.
    I have alot of sprites in my app. Almost all of them have an
    ExitFrame handler.
    Question: is it faster to have each sprite handle it's own
    ExitFrame routine and do code specific to that sprite or is
    it faster to have one generic
    ExitFrame to loop through and execute code for each sprite?
    2. Puppeted sprites vs Non-Puppeted sprites.
    I have a alot of sprites in my program. To make life ALOT
    easier, I simply allocated a good chunk of sprite channels to sole
    use of "dynamically created sprites". My program can have hunders
    of puppeted sprites from any given moment to the next.
    Question: Does director progress faster or slower depending
    on if a sprite is puppeted or not? Or is there any difference at
    all?
    3. Checking to see if a variable is set before setting it.
    I have only recently come into the Director/Lingo world of
    programming. I am originally a VB programmer for almost a decade.
    In visual basic, I have noticed that the code executes faster if
    you don't do unneeded variable assignments by checking to see if it
    was already set.
    Example: In visual basic, let's say you have an array of 1000
    elements, some elements are already set, some are not.
    for i = 1 to 1000
    var(i) = i
    next
    The above code executes fast, but if you are doing that very
    very often, it can be a bottle neck.
    the below code, while doing the exact same thing, actually is
    faster.
    for i = 1 to 1000
    if var(i) <> i then var(i) = i
    next
    In VB, it's faster to do a check of a variable than it is to
    do the assignment when it's not needed. Now granted, this is a poor
    example, usually I am dealing with much more complex routines, but
    the basic principle of what I am trying to get across is the same.
    Question: in Director/lingo, would it speed up the execution
    of code to do a variable check before the assignment, or is the
    very act of adding the check going to slow the down the execution?
    Anyone have any ideas about these? Or anyone have any other
    tips about stupid little things to speed up execution of
    code?

    >
    1. Multiple
    ExitFrame calls vs a single
    ExitFrame
    > call.
    You should consider dropping the exitframe approach, in favor
    of an oop
    model.
    OOP is not faster, as a dual core processor is not faster
    than a single core
    one running at double the speed. In fact, the second should
    be faster, since
    there is no synchronization penalty. However, it is much
    smoother. Same with
    oop, you have a penalty, since you are using more objects,
    but the objects
    can be smart enough to adjust the number of instructions they
    execute as
    required.
    If you e.g. have objects whose coordinates can be calculated
    and stored
    inside the object, you don't have to update the stage each
    time an object
    moves. You can do that once, for all objects in set
    intervals. Long as the
    interval is large enough to handle all intermediate
    processing and
    updatestage cost, you'll have a very smooth movie.
    >
    2. Puppeted sprites vs Non-Puppeted sprites.
    Puppeting does not affect performance -or at least it
    shouldn't. The number
    of sprites, and number of behaviors attached to each sprite
    does. However,
    even when there is a very large number of sprites active, the
    procedure
    should be a joke for any modern cpu. What does cost, is
    redrawing the
    sprites. So, if it's image sprites we are talking about, you
    should perhaps
    consider a single bitmap member you should use as a buffer,
    and imaging
    lingo for drawing each frame. The mouse click events can be
    evaluated by
    keeping a list of virtual sprite positions. Even if not
    familiar with the
    above, the time you'll invest in learning what is required,
    will be rewarded
    with a significant -up to times x- performance increase.
    >
    3. Checking to see if a variable is set before setting it.
    You can create a simple lingo benchmarking script to get your
    answers. As a
    general principle, the less commands the faster. Though not
    really into VB
    (I find c++ and lingo to be a killer combination), I can
    assume why this is
    happening: when setting a variable, vb is executing some code
    to evaluate
    what the value was, and what -if anything- has to be
    released. Though
    nowhere documented, it seems that several years ago, someone
    in the director
    dev team was smart enough to take this matter into account
    when creating the
    object that is known as a lingo variable (64bit internally,
    btw). So,
    director doesn't suffer slow variable release - releasing
    what shouldn't be
    released that is.
    > Anyone have any ideas about these? Or anyone have any
    other tips about
    > stupid
    > little things to speed up execution of code?
    You know, a few years ago, lingo performance/speeding up
    director was a
    regular discussion issue in this list. This is not the case
    anymore. And
    though I can guess a couple reasons why, I found none to be
    qualified as an
    explanation.. Not in my book at least. Case you have any more
    questions, I'd
    be happy to answer. Building a site with director performance
    hints /
    optimizing lingo code is high in my to do list.
    "DaveGallant" <[email protected]> wrote in
    message
    news:[email protected]...
    >I am having a problem with my program as I am not getting
    the desired frame
    > rate due to all the code that is getting executed per
    tick. So I have some
    > questions about director and lingo as to which way
    actually executes
    > faster.
    >
    >
    1. Multiple
    ExitFrame calls vs a single
    ExitFrame
    > call.
    >
    > I have alot of sprites in my app. Almost all of them
    have an
    >
    ExitFrame
    > handler.
    > Question: is it faster to have each sprite handle it's
    own
    >
    ExitFrame
    > routine and do code specific to that sprite or is it
    faster to have one
    > generic
    >
    ExitFrame to loop through and execute code for each sprite?
    >
    >
    2. Puppeted sprites vs Non-Puppeted sprites.
    >
    > I have a alot of sprites in my program. To make life
    ALOT easier, I simply
    > allocated a good chunk of sprite channels to sole use of
    "dynamically
    > created
    > sprites". My program can have hunders of puppeted
    sprites from any given
    > moment
    > to the next.
    > Question: Does director progress faster or slower
    depending on if a sprite
    > is
    > puppeted or not? Or is there any difference at all?
    >
    >
    3. Checking to see if a variable is set before setting it.
    >
    > I have only recently come into the Director/Lingo world
    of programming. I
    > am
    > originally a VB programmer for almost a decade. In
    visual basic, I have
    > noticed
    > that the code executes faster if you don't do unneeded
    variable
    > assignments by
    > checking to see if it was already set.
    >
    > Example: In visual basic, let's say you have an array of
    1000 elements,
    > some
    > elements are already set, some are not.
    >
    > for i = 1 to 1000
    > var(i) = i
    > next
    >
    > The above code executes fast, but if you are doing that
    very very often,
    > it
    > can be a bottle neck.
    > the below code, while doing the exact same thing,
    actually is faster.
    >
    > for i = 1 to 1000
    > if var(i) <> i then var(i) = i
    > next
    >
    > In VB, it's faster to do a check of a variable than it
    is to do the
    > assignment
    > when it's not needed. Now granted, this is a poor
    example, usually I am
    > dealing
    > with much more complex routines, but the basic principle
    of what I am
    > trying to
    > get across is the same.
    >
    > Question: in Director/lingo, would it speed up the
    execution of code to do
    > a
    > variable check before the assignment, or is the very act
    of adding the
    > check
    > going to slow the down the execution?
    >
    >
    >
    > Anyone have any ideas about these? Or anyone have any
    other tips about
    > stupid
    > little things to speed up execution of code?
    >

  • Named Searches - Performance Questions

    Dear MDM Pros,
    I have question regarding the performance of Named Searches.
    I have a repository with 600.000 datasets (and various lookup tables) now I need to setup named searches for restricting the access to the data.
    I have one field with classifications (Number 8 digits / 15.000 different classes) on that I want to restrict access. The restriction should work on the first 2 digits of a class.
    Example Classification:
    21010509
    21010503
    21010504
    21010507
    19050711
    19050912
    31020530
    Rule:
    LEFT(CLASSIFICATION,2) >= 19 AND LEFT(CLASSIFICATION,2) <= 21
    So my idea is to use this
    LEFT(CLASSIFICATION,2) >= 19 AND LEFT(CLASSIFICATION,2) <= 21
    Expression in the search and save this as Named Search.
    As wrote before I think this is really slow.
    Can anybody give me a hint how to find a performance optimized solution for this problem.
    Best regards
    Roman

    Hi Christian,
    here is what SAP said:
    07.10.2008 - 16:22:51 CET - Antwort von SAP     
    Dear Mr Becker,
    I have looked at this issue that you described.
    I have attached 2 notes: 1077701 and 1138862.
    Note 1077701 describes under " 6) Named Search" that the use of
    expressions is not supported for named search.
    The reason for this is that an expression can result in extensive searchoperation as you experience it. The response time in MDM Data Manager
    was in a range of 2-3 minutes when I executed a free form search
    with the expression you used in my environment. My observation in
    our SAPconnect session yesterday was that you have a similar response
    time with MDM Data Manager in your environment.
    Note 1138862 describes under "Situation 2:" that the
    SRM-MDM Catalog Search UI will show a 5-7 times slower response
    time then the MDM Data Manager for the same search.
    This is why you experience response times of 10-15 minutes in
    SRM-MDM Catalog Search UI when calling it with a named search that
    uses an expression.
    Kind regards,
    Alexander Ohlgart
    I am running MDM with 5.5 SP3 actual fix.
    HTH
    Roman

  • Premiere Pro CS3 on Sony Vaio - performance question

    I am running an older VAIO PCV-RX770 P4 2.2 Ghz, 1Gb RAM, ATI RADEON 9550 256 Mb graphics card with Premiere Pro CS3 newly installed. I have attached a new Seagate FreeAgent 500 Gb external drive that I have all my Source Files on. My question is this: Is there any tweaks that I can perform to this machine to make it run as as fast as possible. All drivers are up to date and all drives constantly de-fragged. When I do Start, Run, MSCONFIG, my startup tab is pretty clear, only a few things running - AGRMMSG, khooker, point32, RUNDLL32, ccApp, cfmon, ColorVision Startup. I wonder about the SERVICES tab - can anyone tell me what apps(without me listing them all here) that I can safely "disable"(if at all) here? I see the "hide all Microsoft Services" box and when checked, the list becomes smaller. When I checked the Microsoft box and then "disabled" all the rest, Premiere wouldn't start. Any help would be most appreciated. Thanx, Eric.

    There are a couple of Adobe Technical Support Documents (links are in the WIki) that cover optimizing Windows for PPro. They will probably help you.
    Cheers
    Eddie
    Forum FAQ
    Premiere Pro Wiki
    - Over 250 frequently answered questions
    - Over 100 free tutorials
    - Maintained by editors like
    you

Maybe you are looking for

  • Can I use Family sharing on a device with iOS 7?

    Can I use Family Sharing on a device that is not with iOS 8?

  • How to Change RRI mapping

    Hi Experts,                    I have to create RRI between two queries but I want to change the mapping between two queries Like first query A field will be mapped with second query Field B. Usually the mapping will be like first query A to second q

  • Distortion when recording

    Hi, I recently bought a dv7-6135dx and I have been trying to record with Audacity. While recording everything is fine, but when I play it back it sounds very distorted. Audacity says that I have three options for recording devices. Microsoft Sound Ma

  • Handling Content Events SAXParser

    In SAXParser tutorial : public void startElement(String namespaceURI, String sName, // simple name (localName) String qName, // qualified name Attributes attrs) throws SAXException String eName = sName; // element name if ("".equals(eName)) eName = q

  • Local Contracts in SRM

    Hi, I have the following question: I'm trying to do a call off against a Local (Purchase) Contract but can't seem to get this to happen in the Classic scenario?  I've tried to assign the contract line item via the Sourcing Cockpit but it still doesn'