Difference in speed between 2.05 and 2.50

If you are a Power Builder developer and have any questions about using our products from Power Builder here is the place to post them.
Post Reply
michaelsteven
Posts: 4
Joined: Wed Oct 26 2005
Location: Austin, TX

Difference in speed between 2.05 and 2.50

Post by michaelsteven »

We've been using using 2.05 for three or four years now with Powerbuilder on Sybase EAServer, and are trying to move away from the Kernel Mode Driver and COM.

When I throw 40 threads at the 2.05 driver on my 2ghz workstation they are all finished in about 3 to 4 seconds. Single invocations complete in less than a second

When I throw 40 threads at the latest 2.50 driver, it takes about 12 to 13 seconds. Single invocations complete in a second or less. This timing here is the same for both COM and the DLL interface.

Is the difference in timing related to the fact that it is no longer a kernal mode driver? Anyone else notice a speed decrease with other versions?

I've pasted below is the way that I'm calling the slower 2.50 driver via the DLL interface from Powerbuilder (minus debugging).

Thanks,

Michael H.

------------------------------------------------------------------------
// declarations
constant string ls_printer = "New Amyuni PDF Converter"
constant string ls_company = "Evaluation Version Pro Developer"
constant string ls_code = "07EFCDAB...342BCF355"
constant int li_timeout = 20000 // in milliseconds
datastore lds_document
long lhdl_printer
long ll_rc


// read a fullstate datastore blob into a local datastore
lds_document = Create datastore // create the datastore
lds_document.SetFullState( ablob_document ) // put the blob into the datstore


// print the datastore
Try
// initialize the pdf driver
ll_rc = PrintSetPrinter( ls_printer )
lhdl_printer = DriverInit( ls_printer )

// set some properties and print
ll_rc = Lock( lhdl_printer, as_filename )
ll_rc = SetDocFileProps( lhdl_printer, as_filename, 3, "", as_path + as_filename )
ll_rc = EnablePrinter( lhdl_printer, ls_company, ls_code )
lds_document.object.datawindow.print.documentname = as_filename
ll_rc = lds_document.print()

Finally
ll_rc = Unlock( lhdl_printer, as_filename, li_timeout ) // unlock if needed
DriverEnd( lhdl_printer )

End try


// return
return ll_rc
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Are you using version 2.50e?
michaelsteven
Posts: 4
Joined: Wed Oct 26 2005
Location: Austin, TX

Post by michaelsteven »

Yes, using 2.50e.

Michael H.
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

I mesured the speed of printing using version 2.50e and 2.09 and i didn't notice that version 2.50e is slower, it is in fact a little bit faster than 2.09.

Version 2.05 is more than two years old and i don't have a copy of it to try it, but version 2.09 is quite similar to 2.05 except that version 2.09 runs in user-mode.

I checked if we have any speed issues raised by our customers, I found one, and it turned out to be related to the printer installation time under XP and not to the printing timing itself.

I suggest that you submit a sample application that reproduces this issue to support@amyuni.com to check it.
michaelsteven
Posts: 4
Joined: Wed Oct 26 2005
Location: Austin, TX

Post by michaelsteven »

Just sent the sample program, and a copy of version 2.05 to support.

Thanks,

Michael H.
michaelsteven
Posts: 4
Joined: Wed Oct 26 2005
Location: Austin, TX

Post by michaelsteven »

Just got an e-mail back from support saying they fixed the problem and put a new version out (2.50e-3). I tested it and the new version is just as fast as the 2.05 version.

That was a quick response... I'm very happy with the outcome.

Thanks!!!

Michael H.
Post Reply