![]() |
【转帖】dxf load times in 2.05.02
dxf load times in 2.05.02
dxf load times in 2.05.02 i was wondering if there was any progress or workarounds for the slower dxf load times i am seeing in 2.05.02? i am using the following to open a dxf file: code: try{ this->dwgdatabase = inservice.readfile(infilename.c_str(), true, false, oda::ksharedenyno); ... }i noted in the oda development status, dated july 11th, under the dwgdirect section, that: quote: some work on performance improvements (dxf loading). just curious if any headway was made, or workarounds, or it will stay as it is. i am about to add some serious complexity to some of my code that handles file reading, in an attempt to speed this up (essentially cacheing, as it's loaded multiple times), but i'd like to hear if anything is or has changed in that area. thank you for your time. hi, as i know, here was small fix in the readstring method. readstring - read one string from dxf file and make some parsing. fix was in replacing of code like next odstring tmp; ... ch = readchar(); ... tmp += ch; with odstring tmp; ... pbuf = tmp.getbiffer(); ... pbuf[i] = readchar(); this is low level fix, operation += called for each character in dxf file. as i remember it got up to 10%-15% in performance of dxf file loading. |
所有的时间均为北京时间。 现在的时间是 04:53 AM. |