Closed BrunoSam66 closed 5 months ago
Hi @BrunoSam66
About the Stack Overflow exception it seems that is caused in your code, after the method GetTargetBlock
there is a infinite recursion between the methods BuildTree
and SearchNewBranch
, without more information about what methods or properties are you calling is hard to know what is happening in the code, could you give me some clue of what is happening in these methods?
About the time, I'm checking the PR's from the release but I don't find any major modification in the DxfReader
besides adding the entities Shape
and Image
that messes with the time to read, I'll try to replicate the issue by adding stress tests using big files.
I'll keep looking on what caused this decrease on the performance.
I've tested the issue with a file of 115MB for both versions the 2.3.1 has a bottleneck issue in the builder, which is affecting the dwg and dxf, after a quick fix this was the result:
9 seconds for 2.2.0
12 seconds for 2.3.1
I've opened a branch to try to improve these results.
Thanks for reporting the issue!
Describe the bug After updating from version 2.2.0-beta to 2.3.1-beta, reading the same file now throws a Stack Overflow exception.
To Reproduce Just reading a file .dxf with 64 MB and it takes too long to read the file (30 minutes or more).
Expected behavior Using the previous version, I was able to read the file in less than 3 minutes.
Screenshots
Additional context I cannot share the file or reproduce an equivalent one, but it has 3000 INSERTS and some LwPolylines interacting with them.