Thanks Symion, for your comments and detailed analysis.
Thanks to your testing software, so that I have repeated your calculations on my own system. I had similar results with fastest being marlett.ttf with 1.66 secs, and slowest being papyrus.ttf with 31. 36 secs. I have measured segoesbc.ttf as 19.72, with overall average of 352 fonts with 5.86 secs.
As you might have noticed, the response time depends on the detail level of the font. For sans fonts it is smaller, with serif fonts larger, and with creative artistic fonts it is more extensive; which says in short: everything has a cost.
Yet, looking at these numbers I have reviewed the code a little bit more to cut down the response time. I made some changes which resulted in about 20% performance improvement. I think we include these changes in the nearest modification release.
Thanks once again for your review.
Kadir
________________________________
From: Symion <kn...@ip...>
To: Vpython <Vis...@li...>
Sent: Wed, April 7, 2010 8:42:23 PM
Subject: [Visualpython-users] Text fonts
The new text object is excellent.
Here is a Text font loader and tester that measures load, display and
erase times for the entire
printable character set of All fonts on your system, then outputs a
report.
Source Code: Testext.py
My system has the following stats:
Report:
359 fonts available, out of 361
Speed Table: 0 Hours: 38 minutes: 54.462 seconds to load 359 fonts
Fastest = C:\Windows\Fonts\marlett.ttf @ 1.48200 seconds
Fastest = C:\Windows\Fonts\lucon.ttf @ 3.09800 seconds
Fastest = c:\windows\fonts\browab.ttf @ 3.13300 seconds
Fastest = C:\Windows\Fonts\browaub.ttf @ 3.14200 seconds
Fastest = C:\Windows\Fonts\browab.ttf @ 3.21500 seconds
Slowest = c:\windows\fonts\segoescb.ttf @ 23.96200 seconds
Slowest = C:\Windows\Fonts\segoescb.ttf @ 23.73300 seconds
Slowest = C:\Windows\Fonts\segoesc.ttf @ 22.34500 seconds
Slowest = c:\windows\fonts\segoesc.ttf @ 21.41500 seconds
Slowest = c:\windows\fonts\simfang.ttf @ 16.61000 seconds
Average loading time: 6.503 seconds / font
Error list: 2
C:\Windows\Fonts\mvboli.ttf 1.70300006866
c:\windows\fonts\mvboli.ttf 1.81100010872
Dictionaries:
prog.found =len(359)
prog.error =len(2)
prog.fonts =len(361)
|