几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】readwrite dwg files too slow, mac ub (http://www.dimcax.com/hust/showthread.php?t=18370)

yang686526 2009-05-07 12:39 PM

【转帖】readwrite dwg files too slow, mac ub
 
read/write dwg files too slow, mac ub
read/write dwg files too slow, mac ub
hi there,
i mentioned that readfile and writefile are too slow on both mac intel and mac ppc - 5+ mb dwg files take long long time to be read or written.
i built a sample xcode app on mac (default xcode project settings), using the original example code for reading dwgs (odreadex) and added the code for auditing and writing already read database to a new dwg. i linked to the next ub libs from the opendesign (dwgdirect 1.14.02):
dd_macub_acisbuilder
dd_macub_acisrenderer
dd_macub_alloc
dd_macub_br
dd_macub_ft
dd_macub_db
dd_macub_dynblocks
dd_macub_ge
dd_macub_gi
dd_macub_gs
dd_macub_modelergeometry
dd_macub_plotstyleservices
dd_macub_recomputedimblock
dd_macub_root
dd_macub_spatialindex
then i started my application and tried to read file stadium plan.dwg, which is from autocad 2004 sample folder and to write it back as a dwg version 2000 - it took ~ 6 min (macos 10.4.6, 1.66ghz intel core duo, 1gb) and more than a half of hour (macos 10.4.6, 800mhz powerpc g4, 512mb). and this does not seem to be a file-specific - other dwgs 5+ mb show the same behaviour.
does anyone else see this? or i am missing something...
any help is welcomed!
thanks
please see for some related info on this issue.

thank you, neil!


所有的时间均为北京时间。 现在的时间是 02:32 PM.