Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to speed up InDesignServer performance

Explorer ,
Aug 22, 2010 Aug 22, 2010

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

3.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 22, 2010 Aug 22, 2010

If I use IDML happens if the speed improvements?

Thank you.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 22, 2010 Aug 22, 2010

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

Harbs

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 22, 2010 Aug 22, 2010

Thanks harbs

I will post the result.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Aug 23, 2010 Aug 23, 2010

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 30, 2010 Aug 30, 2010

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 31, 2010 Aug 31, 2010

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 14, 2010 Sep 14, 2010
LATEST

Thanks DevWorking.

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

Lion J.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines