Skip to content

Performance improvements#1181

Merged
wongzigii merged 9 commits intoSwiftyJSON:masterfrom
b5i:master
May 27, 2025
Merged

Performance improvements#1181
wongzigii merged 9 commits intoSwiftyJSON:masterfrom
b5i:master

Conversation

@b5i
Copy link
Contributor

@b5i b5i commented May 26, 2025

Hey! Here's a few simple optimizations for the project (around 16% faster tests and 25% faster in my use case), I tried to remove closure when they weren't needed, and use the new dictionary APIs from Swift 4 to improve the speed of the module.

Let me know what you think!

@wongzigii
Copy link
Member

This looks great.

@wongzigii
Copy link
Member

@b5i I've updated the GitHub Action with test in #1182, can you please pull the latest code to run the tests?

@b5i
Copy link
Contributor Author

b5i commented May 27, 2025

Tests pass successfully https://github.com/b5i/SwiftyJSON/actions/runs/15269527270/job/42941610613. Performance improvements are visible (5.06s vs 6.52s -> 23% faster).

@wongzigii wongzigii merged commit 3799654 into SwiftyJSON:master May 27, 2025
1 check passed
@wongzigii
Copy link
Member

Thanks

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