几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】memory usagecpu usage (http://www.dimcax.com/hust/showthread.php?t=17189)

yang686526 2009-05-06 05:42 PM

【转帖】memory usagecpu usage
 
memory usage/cpu usage
memory usage/cpu usage
hi, right now i have a test viewer running with v1.10 update 1 of the libs, and i have a 87mb drawing to load... it loads fine but takes 2m45s to load and the app is 10mb or memory normally... when the drawing is done loading it is at 230mb of memory taken, therefore it slows down the computer a lot. is there any ways to use less memory or somethin? btw it is a simple exe in delphi that has a canvas to display what our dwg dll tells it to display
i mean if it would use only the size of the drawing it would already be a good beginning... but it takes almost 2.5 times more memory than the drawing size...
we have a lot to do to optimize memory usage but it's impossible to use the same amount of memory as dwg file untill paging is implemented.
dwg file even of minor versions is a packed data (a double value can be packed in 2 bits for example if it's 0 or 1). and in ac2004 a new compression layer was introduced (similar to lz).
so paging is the only way to handle the problem.
sergey slezkin


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