On Jun 6, 2011, at 9:17 AM, John Fabiani wrote:

> I'll try adding delays as you have.  But don't you think this might be a 
> hack? 
> There is something wrong at the wxPython level or maybe even deeper.


        Not really. We do a lot of preventative updates: something *may have* 
changed, so let's update to make sure it's correct. My guess is that 2.7 sped 
up some previously inefficient call, making these updates "collide" and cause 
the errors. Here are the dGrid method call counts I recorded just opening up a 
saved design with a grid on it:

114             <function __onWxHeaderIdle at 0xd4bdf30>
130             <function _updateDynamicProps at 0xd4aa370>
134             <function getColByX at 0xd4bb5f0>
134             <function getColNumByX at 0xd4bb4f0>
135             <function _getHeaderRect at 0xd4aa970>
135             <function GetColLabelValue at 0xd4b1830>
140             <function _getWxHeader at 0xd4bb970>
141             <function _constructed at 0xd4aa5f0>
270             <function GetValue at 0xd4b8fb0>
270             <function getValue at 0xd4ba170>
454             <function _getColumnIndex at 0xd4aacf0>
547             <function _convertDaboColNumToWxColNum at 0xd4ba7f0>
755             <function getBizobj at 0xd4bb8f0>
948             <function GetValue at 0xd4b1bb0>
1491            <function GetAttr at 0xd4b1730>
1491            <function getRendererClassForRow at 0xd4aa8f0>
1621            <function _updateCellDynamicProps at 0xd4aa430>
2480            <function _convertWxColNumToDaboColNum at 0xd4b1d30>
2616            <function _convertWxColNumToDaboColNum at 0xd4ba770>
3163            <function _getDaboVisibleCols at 0xd4ba6f0>

        There is clearly room for improvement in our code.



-- Ed Leafe




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to