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

Remove some dead code #330

Merged
merged 3 commits into from
Jan 17, 2024
Merged

Remove some dead code #330

merged 3 commits into from
Jan 17, 2024

Conversation

AngheloAlf
Copy link
Collaborator

Noted there's some dead code floating around and decided to clean it up.

The code from codesubsegment.py was just wasting runtime since it was creating jumptable symbols based on spimdisasm's analysis and then passing those new symbols back to spimdisasm, essentially a no-op

Got curious about it and compared the current main with this branch on drmario64 and af to see if there was a noticeable time improvement.

  • drmario64: 0m4.643s -> 0m4.425s: 4.7% faster
  • af: 0m49.212s -> 0m47.631s: 3.21% faster

@ethteck
Copy link
Owner

ethteck commented Jan 17, 2024

could you test this on paper mario too? us only is fine. I am worried that not having the symbols on splat's side will fail some of the gfx segments

@AngheloAlf
Copy link
Collaborator Author

splat is still getting the symbols from spimdisasm. The cleanup removes giving back those symbols back to spimdisasm.

Either way, I tested both paper mario us and jp and both matched

@ethteck ethteck merged commit b1424f9 into ethteck:main Jan 17, 2024
7 checks passed
@AngheloAlf AngheloAlf deleted the yeet-ded-cod branch January 17, 2024 12:52
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