[scribus] Scripter: slow createCharStyle() and createParagraphStyle()

Gregory Pittman gpittman at iglou.com
Wed Apr 10 11:40:46 UTC 2013


On 04/10/2013 05:16 AM, Stefano Danzi wrote:
> 
> Il 10/04/2013 0.27, Owen ha scritto:
>>
>> It is if your program is written to do that.
>>
>> Maybe you could post the script for more eyes to debug, but generally,
>> this case will occur when "calls" aren't completed and another started.
>> Just fills up one of your quotas.
>>
>> Then again, the fault could be in the underlying createCharStyle or
>> createParagraphStyle code in which case it needs to reported as a bug.
>>
> This is a very semplified version of my script:
> 

Did you run this in a console? I wasn't sure where the output was going,
so I instead created a text frame, then inserted the output into that:

e.g.,
      t1 = "createCharStyle("+"CS-" + item + "-label" +  " ...) took "+
str(elapsed) + " time to finish\n"
      scribus.insertText(t1, -1, t)

Greg

Here is the contents of the text frame:

createCharStyle(CS-01-label ...) took 0.0117070674896 time to finish
createParagraphStyle(PS-01-label ...) took 0.0121212005615 time to finish
createCharStyle(CS-01-label ...) took 0.0117688179016 time to finish
createParagraphStyle(PS-01-label ...) took 0.0122652053833 time to finish
createCharStyle(CS-02-label ...) took 0.0118200778961 time to finish
createParagraphStyle(PS-02-label ...) took 0.0121240615845 time to finish
createCharStyle(CS-02-label ...) took 0.0118141174316 time to finish
createParagraphStyle(PS-02-label ...) took 0.0123980045319 time to finish
createCharStyle(CS-03-label ...) took 0.0120000839233 time to finish
createParagraphStyle(PS-03-label ...) took 0.0123398303986 time to finish
createCharStyle(CS-03-label ...) took 0.0121688842773 time to finish
createParagraphStyle(PS-03-label ...) took 0.0124020576477 time to finish
createCharStyle(CS-04-label ...) took 0.0122730731964 time to finish
createParagraphStyle(PS-04-label ...) took 0.012412071228 time to finish
createCharStyle(CS-04-label ...) took 0.012197971344 time to finish
createParagraphStyle(PS-04-label ...) took 0.012558221817 time to finish
createCharStyle(CS-05-label ...) took 0.0121028423309 time to finish
createParagraphStyle(PS-05-label ...) took 0.0126049518585 time to finish
createCharStyle(CS-05-label ...) took 0.0122199058533 time to finish
createParagraphStyle(PS-05-label ...) took 0.0125579833984 time to finish
createCharStyle(CS-06-label ...) took 0.0122218132019 time to finish
createParagraphStyle(PS-06-label ...) took 0.0126581192017 time to finish
createCharStyle(CS-06-label ...) took 0.0125069618225 time to finish
createParagraphStyle(PS-06-label ...) took 0.0126080513 time to finish
createCharStyle(CS-07-label ...) took 0.0122301578522 time to finish
createParagraphStyle(PS-07-label ...) took 0.0124580860138 time to finish
createCharStyle(CS-07-label ...) took 0.0123770236969 time to finish
createParagraphStyle(PS-07-label ...) took 0.0125479698181 time to finish
createCharStyle(CS-08-label ...) took 0.0122439861298 time to finish
createParagraphStyle(PS-08-label ...) took 0.0126261711121 time to finish
createCharStyle(CS-08-label ...) took 0.0122430324554 time to finish
createParagraphStyle(PS-08-label ...) took 0.0125930309296 time to finish
createCharStyle(CS-09-label ...) took 0.0122249126434 time to finish
createParagraphStyle(PS-09-label ...) took 0.0126140117645 time to finish
createCharStyle(CS-09-label ...) took 0.0124001502991 time to finish
createParagraphStyle(PS-09-label ...) took 0.0127589702606 time to finish
createCharStyle(CS-10-label ...) took 0.0125150680542 time to finish
createParagraphStyle(PS-10-label ...) took 0.0128700733185 time to finish
createCharStyle(CS-10-label ...) took 0.0124611854553 time to finish
createParagraphStyle(PS-10-label ...) took 0.0127799510956 time to finish
createCharStyle(CS-11-label ...) took 0.0123159885406 time to finish
createParagraphStyle(PS-11-label ...) took 0.0129411220551 time to finish
createCharStyle(CS-11-label ...) took 0.0125889778137 time to finish
createParagraphStyle(PS-11-label ...) took 0.0127048492432 time to finish
createCharStyle(CS-12-label ...) took 0.0124490261078 time to finish
createParagraphStyle(PS-12-label ...) took 0.0128710269928 time to finish
createCharStyle(CS-12-label ...) took 0.0125300884247 time to finish
createParagraphStyle(PS-12-label ...) took 0.0127561092377 time to finish
createCharStyle(CS-13-label ...) took 0.0124080181122 time to finish
createParagraphStyle(PS-13-label ...) took 0.0127811431885 time to finish
createCharStyle(CS-13-label ...) took 0.012403011322 time to finish
createParagraphStyle(PS-13-label ...) took 0.0128238201141 time to finish
createCharStyle(CS-14-label ...) took 0.0124619007111 time to finish
createParagraphStyle(PS-14-label ...) took 0.0128388404846 time to finish
createCharStyle(CS-14-label ...) took 0.0125870704651 time to finish
createParagraphStyle(PS-14-label ...) took 0.012845993042 time to finish
createCharStyle(CS-15-label ...) took 0.012501001358 time to finish
createParagraphStyle(PS-15-label ...) took 0.0130770206451 time to finish
createCharStyle(CS-15-label ...) took 0.0126860141754 time to finish
createParagraphStyle(PS-15-label ...) took 0.0133099555969 time to finish
createCharStyle(CS-16-label ...) took 0.0125811100006 time to finish
createParagraphStyle(PS-16-label ...) took 0.0129828453064 time to finish
createCharStyle(CS-16-label ...) took 0.0125980377197 time to finish
createParagraphStyle(PS-16-label ...) took 0.0129749774933 time to finish
createCharStyle(CS-17-label ...) took 0.0126359462738 time to finish
createParagraphStyle(PS-17-label ...) took 0.0129678249359 time to finish
createCharStyle(CS-17-label ...) took 0.0126249790192 time to finish
createParagraphStyle(PS-17-label ...) took 0.0129859447479 time to finish
createCharStyle(CS-18-label ...) took 0.012640953064 time to finish
createParagraphStyle(PS-18-label ...) took 0.0130879878998 time to finish
createCharStyle(CS-18-label ...) took 0.0127079486847 time to finish
createParagraphStyle(PS-18-label ...) took 0.0131008625031 time to finish
createCharStyle(CS-19-label ...) took 0.0129067897797 time to finish
createParagraphStyle(PS-19-label ...) took 0.0130801200867 time to finish
createCharStyle(CS-19-label ...) took 0.0126459598541 time to finish
createParagraphStyle(PS-19-label ...) took 0.0131402015686 time to finish
createCharStyle(CS-20-label ...) took 0.01296210289 time to finish
createParagraphStyle(PS-20-label ...) took 0.0132069587708 time to finish
createCharStyle(CS-20-label ...) took 0.012845993042 time to finish
createParagraphStyle(PS-20-label ...) took 0.013335943222 time to finish





More information about the scribus mailing list