8000 DwgReader.Read incredibly slow on macOS · Issue #578 · DomCR/ACadSharp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

DwgReader.Read incredibly slow on macOS #578

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mvarie opened this issue Mar 11, 2025 · 3 comments
Open

DwgReader.Read incredibly slow on macOS #578

mvarie opened this issue Mar 11, 2025 · 3 comments
Labels
question Further information is requested SPIKE Investigation related

Comments

@mvarie
Copy link
mvarie commented Mar 11, 2025

Using the same project and source file, DwgReader.Read takes a few seconds on Windows but several minutes on macOS - regardless of whether the crc check is enabled.

Just in case, I’ve tested different files and IDEs while debugging, but the result is always the same.
Other than the difference in performance, there are no other discrepancies—the end result is the same, and it works flawlessly. It just takes forever on macOS.

I understand that non-Windows platforms might be unsupported, and I have no expectations in that regard. I’m just curious to know if this is a known issue, and if not, whether anyone has ideas on where to look for potential causes.

I might be overlooking something obvious here, so any insights would be appreciated.

@DomCR DomCR added the question Further information is requested label Mar 11, 2025
@DomCR
Copy link
Owner
DomCR commented Mar 11, 2025

Hi @mvarie,

I've noticed that using the .NET Framework vs .NET have a different performance time being .NET faster, have you tested in both?

If that doesn't help, I think that I won't be able to resolve this issue because it seems a platform limitation.

@mvarie
Copy link
Author
mvarie commented Mar 11, 2025

@DomCR I’m using .NET 8 on both platforms—it’s literally the same project. However, my macOS platform is significantly faster than the Windows machine I’m using for this test, which is quite odd. I regularly develop .NET Core (C#) applications on both platforms and have never noticed such a difference. In fact, when working with managed .NET Core without Win32 dependencies, performance is typically smooth across the board.

I’m going to investigate further, but before diving in, I wanted to check if this is a known issue. If possible, I’d appreciate it if you could keep this open—I’d like to report back with my findings, whether I identify the cause or not.

@DomCR DomCR added the SPIKE Investigation related label Mar 13, 2025
@DomCR
Copy link
Owner
DomCR commented Mar 13, 2025

I've found this article on stackoverflow:
https://stackoverflow.com/questions/73945754/performance-difference-between-windows-and-macos-net-console-app#:~:text=Windows%3A%20988%2C000%2D1%2C020%2C000%20ticks,roughly%20a%20170x%20performance%20difference)

The selected answer also provides more insight about the issue.

Regardless if you find something particular in the library don't hesitate to post an issue or a PR, I'll be happy to review it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested SPIKE Investigation related
Projects
None yet
Development

No branches or pull requests

2 participants
0