Getting form fields much slower then before

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Nebulo
User
Posts: 15
Joined: Fri Nov 21, 2008 10:27 pm

Getting form fields much slower then before

Post by Nebulo »

Hi,

I have to call the following code snippet in my application:

Code: Select all

flds = "";
for (i = 0; i < this.numFields; i++)
  { flds = flds + this.getNthFieldName(i) + "\r\n"; }
There is attached example of PDF I'm using.

I noticed that this code is couple of dozens times slower in 2.5 beta (build 189) than in previous versions of PDF XChange Viewer.
Please take a look if there is anything to do to make it faster.

Regards Mebulo
You do not have the required permissions to view the files attached to this post.
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2448
Joined: Thu Jun 30, 2005 4:11 pm

Re: Getting form fields much slower then before

Post by Vasyl - PDF-XChange »

Hi, Nebulo.

We will investigate this problem. Thanks for your report.

Best
Regards.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Nebulo
User
Posts: 15
Joined: Fri Nov 21, 2008 10:27 pm

Re: Getting form fields much slower then before

Post by Nebulo »

Hi,

Any progress here?

Sincerely Nebulo
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: Getting form fields much slower then before

Post by Stefan - PDF-XChange »

Hello Nebulo,

This is a bit older topic, and in the time between that last post and now we have released quite a few builds. Can you please test and see if it's still slow with build 201 of our Viewer?

Best,
Stefan
Nebulo
User
Posts: 15
Joined: Fri Nov 21, 2008 10:27 pm

Re: Getting form fields much slower then before

Post by Nebulo »

Hi,

I've just tested it with the newest 2.5.201 build and it is much slower that with 2.0.x release of PDF XChange Viewer Pro.
The issue can be reproduced it the following way:
- Use PDFXChangeViewerActiveX.exe or JavaScript.exe at AX_DelphiExamples.
- open PDF attached previously
test #1 - 2.0 (build 57) installed
result of the JS snipped is displayed immediately,
test #2 - 2.5.201 installed
result of the JS snipped is displayed after 12 seconds

Sincerely
Nebulo
User avatar
Paul - PDF-XChange
Site Admin
Posts: 7371
Joined: Wed Mar 25, 2009 10:37 pm

Re: Getting form fields much slower then before

Post by Paul - PDF-XChange »

Hi Nebulo,

thanks for that. We looked into it and found that the cause was the need to sort the results each time before getting the field. We will implement caching of the sorted results to facilitate faster returns on subsequent requests. This should be done for the next build.

Ref RT#1426: Getting form fields much slower then before

hth
Best regards

Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
Nebulo
User
Posts: 15
Joined: Fri Nov 21, 2008 10:27 pm

Re: Getting form fields much slower then before

Post by Nebulo »

Hi,

It is over a month since last post here. When are you going to release the update?

Sincerely
Nebulo
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: Getting form fields much slower then before

Post by Stefan - PDF-XChange »

Hello Nebulo,

I see in the ticket that it's been targeted to be resolved with the next build (202) of our products, but when that build will be I can not tell for now.
As soon as the ticket is resolved - or we do have a precise build release date - we will post that additional info here.

Best,
Stefan
User avatar
Paul - PDF-XChange
Site Admin
Posts: 7371
Joined: Wed Mar 25, 2009 10:37 pm

Re: Getting form fields much slower then before

Post by Paul - PDF-XChange »

Hi Nebulo,

We have addressed this issue in the last build. Can you update and confirm this works at your end please?

regards
Best regards

Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com