7 Replies Latest reply on Sep 14, 2010 9:07 PM by Lion J

    How to speed up InDesignServer performance

    Lion J Level 1

      Hello everyone.

       

      I have some critical problem, so I want you help me.

       

      My project using Flex and InDesign Server to produce pdf.
      Plex in the form of the xml passed to the server and
      InDesignSever open template file(*.indd) and  process the xml information and submitted to create a pdf.

      The problem is speed.

      InDesignServer to read the template file takes a second.
      To modify one second, and creating and storing pdf takes a second.


      It can take 3 seconds total. How to handle it in 0.5 seconds suggestions?

       

      Thank you,

      Lion, J

        • 1. Re: How to speed up InDesignServer performance
          Lion J Level 1

          If I use IDML happens if the speed improvements?

           

           

          Thank you.

          • 2. Re: How to speed up InDesignServer performance
            Harbs. Level 6

            Yes. Opening IDML should be faster than placing xml...

             

            Harbs

            • 3. Re: How to speed up InDesignServer performance
              Lion J Level 1

              Thanks harbs

               

              I will post the result.

              • 4. Re: How to speed up InDesignServer performance
                Dirk Becker Level 4

                Some more ideas below. Of course any of them could also make it worse. Experimentation will show, I just don't know.

                 

                • Do you invoke the process from outside (e.g. SOAP) per document? Try to pile up a list of multiple jobs and process them from one run.
                • Of course you already know about those additional parameters to app.doScript - see the OMV section of ESTK help on UndoModes for details.
                • If the number of templates is limited and your modifications are not too destructive, you could keep the document open for reuse, and just fill in other XML.
                • Alternatively try a full undo, or revert to saved, rather than instantiating templates.
                • Dependent on the amount of data, try the ExtendScript XML object rather than XMLElement / import.
                • If your script can run in a permanent target engine (other than "main"), you need not load it every time. Be careful with memory leaks, though.
                • How complicated is the static/unchanged part of the template? Maybe that part of the document is faster as placed and eventually even embedded PDF, or EPS.
                • Are there images that you could pre-scale and crop once rather than let InDesign do it? Also revisit their color spaces to match your PDF export settings.
                • Minimize your template, strip all unused fonts, styles, swatches.
                • Watch out for the flattener (output preview).
                • On the Mac, use Instruments from the Developer tools, and there the Sampler. It allows to watch the server while it is running. That should give some statistics where it is really spending most time.
                • Use $.hiresTimer for measurements.

                 

                Dirk

                • 5. Re: How to speed up InDesignServer performance
                  Lion J Level 1

                  Thanks Dirk.

                   

                  How can I could keep the document open for reuse ?

                   

                  In my case, whenever arrived the request open template(indt) and fill xml data  and close all document.

                   

                   

                  Thank you.

                  Lion J.

                  • 6. Re: How to speed up InDesignServer performance
                    DevWorking

                    if you want to reuse the document, just don't close it. you can fetch your document instance by name for example. if you do so, keep in mind you are creating a new document every time you 'open' the indt. so better use a normal indd doc in this case with a fix name.

                     

                    this is just one way to do it.

                    1 person found this helpful
                    • 7. Re: How to speed up InDesignServer performance
                      Lion J Level 1

                      Thanks DevWorking.

                       

                      Then I will use indd for reuse and indt for instance template.

                       

                      Lion J.