Skip to content

perf: runtime function type checking overhead#62

Merged
cawalch merged 1 commit intomainfrom
perf-runtime-function-typechecking
Jul 13, 2025
Merged

perf: runtime function type checking overhead#62
cawalch merged 1 commit intomainfrom
perf-runtime-function-typechecking

Conversation

@cawalch
Copy link
Collaborator

@cawalch cawalch commented Jul 13, 2025

Updates type checking calls for better performance - Object.prototype.toString.call is more expensive

Runtime#max_function: +18.6% improvement (343K → 407K ops/sec)
Runtime#sort_by_function: +16.7% improvement (225K → 263K ops/sec)
Runtime#length_function: +2.9% improvement (3.38M → 3.48M ops/sec)
Runtime#map_function: +1.1% improvement (522K → 528K ops/sec)
Runtime#contains_function: +1.1% improvement (437K → 442K ops/sec

<!-- ps-id: fd3afb3d-774f-4fe5-8171-afc0c54be315 -->
@cawalch cawalch self-assigned this Jul 13, 2025
@cawalch cawalch merged commit 656db0f into main Jul 13, 2025
7 checks passed
@cawalch cawalch deleted the perf-runtime-function-typechecking branch July 16, 2025 20:27
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