I can confirm that behavior is better for the latest cvs check-in (rows
I thought it was just my 366Mhz G3. I can supply profiling info if
needed.
Post by Roger BinnsPost by Roger BinnsCan you try what I just committed? I put the logic in OnPaint
instead that
looks at the current size and does a ReLayout if it was different than
when ReLayout last happened. Doing this lazily may improve
performance
a bit.
I can't discern if performance has been enhanced at all, it's still
so slow that I'd rate it to be useless. I realize this test case is
not the same approach you will use when it's subclassed for
wallpaper/ringer views, so we'll see what develops.
Post by Roger BinnsThe profiling shows that most of the CPU time is in the HTML DC
renderer.
Run with python -O to have no profiling. Here is an example of what I
Ordered by: internal time, call count
List reduced from 758 to 20 due to restriction <20>
ncalls tottime percall cumtime percall filename:lineno(function)
1 48.014 48.014 99.569 99.569 _core.py:4725(MainLoop)
2174 33.777 0.016 38.855 0.018 html.py:1190(SetHtmlText)
1 5.569 5.569 5.572 5.572
randpool.py:242(_measureTickSize)
208 1.857 0.009 1.857 0.009 _gdi.py:3988(__del__)
Ordered by: internal time, call count
List reduced from 758 to 20 due to restriction <20>
ncalls tottime percall cumtime percall filename:lineno(function)
215 44.522 0.207 69.423 0.323 html.py:1190(SetHtmlText)
1 24.697 24.697 101.217 101.217 _core.py:4725(MainLoop)
63 15.128 0.240 15.192 0.241 _gdi.py:722(__init__)
215 5.181 0.024 5.181 0.024 html.py:1202(Render)
63 4.162 0.066 4.162 0.066 _gdi.py:578(SaveFile)
64 2.082 0.033 2.087 0.033 _core.py:1991(__init__)
63 1.449 0.023 1.449 0.023
_core.py:2055(FindFirstUnusedColour)
64 1.054 0.016 1.056 0.017
_core.py:2280(ConvertToBitmap)
1 1.033 1.033 1.848 1.848 guiwidgets.py:12(?)
67 1.005 0.015 1.006 0.015 _gdi.py:3814(__init__)
1 0.590 0.590 0.629 0.629 _core.py:5172(__init__)
63 0.284 0.005 0.284 0.005
aggregatedisplay.py:484(isBCI)
215 0.221 0.001 0.299 0.001 html.py:1170(__init__)
140 0.219 0.002 0.219 0.002 _gdi.py:2733(DrawText)
430 0.215 0.001 0.215 0.001 html.py:1176(__del__)
1 0.213 0.213 0.213 0.213 _core.py:6179(Show)
1 0.182 0.182 0.183 0.183 libusb.py:5(?)
1 0.164 0.164 0.170 0.170 _windows.py:394(__init__)
215 0.159 0.001 0.159 0.001 _gdi.py:3576(MinY)
183 0.101 0.001 0.113 0.001
sre_compile.py:180(_optimize_charset)
Post by Roger BinnsPlease also check the selection of items.
They do not select at all. No visible indication that anything is
happening when I click anywhere in the visible area. I haven't tried
to troubleshoot this one yet, and won't this evening, it will have to
be a task for another time.
Post by Roger BinnsBTW I still haven't heard back from you if DC.GetPartialTextExtents
returns
useful numbers or garbage.
I put this call inside the draw routine, just so it would be called
print dc.GetPartialTextExtents("""Testing man"""), "\n"
And it returns two sets of numbers... Strange, I might have expected
the same always... ?
[9, 16, 23, 27, 31, 39, 47, 51, 64, 71, 79]
[9, 16, 23, 27, 31, 39, 47, 51, 64, 71, 79]
[9, 16, 23, 27, 31, 39, 47, 51, 64, 71, 79]
[9, 18, 25, 31, 34, 42, 51, 56, 68, 76, 84]
[9, 16, 23, 27, 31, 39, 47, 51, 64, 71, 79]
[9, 18, 25, 31, 34, 42, 51, 56, 68, 76, 84]
[9, 16, 23, 27, 31, 39, 47, 51, 64, 71, 79]
[9, 18, 25, 31, 34, 42, 51, 56, 68, 76, 84]
[9, 16, 23, 27, 31, 39, 47, 51, 64, 71, 79]
[9, 18, 25, 31, 34, 42, 51, 56, 68, 76, 84]
[9, 18, 25, 31, 34, 42, 51, 56, 68, 76, 84]
[9, 18, 25, 31, 34, 42, 51, 56, 68, 76, 84]
Steve
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bitpim-devel mailing list
https://lists.sourceforge.net/lists/listinfo/bitpim-devel