Skip to content

Improvements and tweaks#649

Open
sreckoskocilic wants to merge 4 commits intoswar:masterfrom
sreckoskocilic:minor_performance_improvements
Open

Improvements and tweaks#649
sreckoskocilic wants to merge 4 commits intoswar:masterfrom
sreckoskocilic:minor_performance_improvements

Conversation

@sreckoskocilic
Copy link

I have analyzed my demo app along with external libraries used. It is using nba_api lib to keep track on recent games and player stats. Probably it would be good to make a revision on the fixes provided in this PR, especially the one reducing redundant json.loads by implementing dict_cache. Notable is reducing get_parameters() calls of get_dict() from 3 to 1 and find_players() compiles re only one per search now.

sreckoskocilic and others added 4 commits March 2, 2026 09:00
- refactor get_parameters update {k:v} anti-pattern
- improve find_player_by_id with single dict get() call
- find_players search speedup
…mmit

- status check in raise_exception_on_error raises on HTTP 4xx/5xx before checking json validity (previously a 429 or 500 would silently pass)
…ecks)

- added strip_accents for find_teams
- ImportError should not be silenced as it could indicate a broken module (parser with syntax error)
@sreckoskocilic sreckoskocilic requested a review from swar as a code owner March 3, 2026 08:10
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.

1 participant