Skip to content
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

do not use their split function #8

Merged
merged 4 commits into from
Nov 13, 2024

Conversation

justinpankmach
Copy link

There split function is very unoptimized. It appears to be around O(n^2)

Copy link

@etotheipluspi etotheipluspi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this looks reasonable, I'm having a bit of a hard time seeing the bottlenecks in jsbsim's split helper and left a few questions about that. It would be good to get some benchmark numbers here. Even smaller ADBs are good -- obviously if we drop loading the large adb to a reasonable time, then that's enough as well.

src/input_output/FGXMLParse.cpp Outdated Show resolved Hide resolved
src/input_output/FGXMLParse.cpp Show resolved Hide resolved
src/input_output/FGXMLParse.cpp Outdated Show resolved Hide resolved
Copy link

@etotheipluspi etotheipluspi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Great fix!

@justinpankmach justinpankmach merged commit 9d41d2b into master Nov 13, 2024
1 check passed
@justinpankmach justinpankmach deleted the justinpankmach/optimize-parser branch November 13, 2024 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants