ACadSharp icon indicating copy to clipboard operation
ACadSharp copied to clipboard

read big dwg file take so long time

Open brull opened this issue 1 year ago • 5 comments

when i run this program: var sw = new Stopwatch(); sw.Start(); using (DwgReader reader = new DwgReader(_file)) { doc = reader.Read(); } sw.Stop(); Console.WriteLine(sw.ElapsedMilliseconds); it takes about 80175ms to read a dwg file about 24M size.

brull avatar Jan 11 '24 03:01 brull

When I use Teigha to read the same file, it takes just 2187ms. The big dwg files are usual on building design. So can you guys improve it. Thanks a lot!

brull avatar Jan 11 '24 03:01 brull

This project is still actively being developed so performance is still being worked on. Since this is an open source project and you want use it, you can create a PR and assist with that performance endeavor and everyone will appreciate it. There are some areas where the parsing can improve and I'm working on ways to help with that.

DJGosnell avatar Jan 11 '24 13:01 DJGosnell

Hi @brull,

Can you provide a file as an example? it would be good to detect bottlenecks and have an example.

Thanks.

DomCR avatar Jan 11 '24 13:01 DomCR

This project is still actively being developed so performance is still being worked on. Since this is an open source project and you want use it, you can create a PR and assist with that performance endeavor and everyone will appreciate it. There are some areas where the parsing can improve and I'm working on ways to help with that.

This project is great! U are great men!Cause it‘s the only one open source project written by C#. Hope it becomes better and better. Now, I am working on rising performance on my job.

brull avatar Jan 12 '24 05:01 brull

Hi @brull,

Can you provide a file as an example? it would be good to detect bottlenecks and have an example.

Thanks.

I'm sorry, the dwg file designed by another guy, I have no idea can I give it to u. But I think this problem is universal. U can find a big dwg file and try it.

brull avatar Jan 12 '24 05:01 brull