Skip to content

Do manual trait upcasting instead of downcasting #922

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Jun 20, 2025

This removes occurences of dyn Database internally where only the zalsas are needed for (hopefully) a perf increase. It's also an attempt at disconnecting the Any trait from things a bit for a future change I wanna explore

Copy link

netlify bot commented Jun 20, 2025

Deploy Preview for salsa-rs canceled.

Name Link
🔨 Latest commit 28acf8c
🔍 Latest deploy log https://app.netlify.com/projects/salsa-rs/deploys/6855264b5a24ed0008e91905

Copy link

codspeed-hq bot commented Jun 20, 2025

CodSpeed Performance Report

Merging #922 will degrade performances by 5.49%

Comparing Veykril:veykril/push-tsxunswownmm (28acf8c) with master (87a730f)

Summary

❌ 1 regressions
✅ 11 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark BASE HEAD Change
amortized[SupertypeInput] 3.7 µs 3.9 µs -5.49%

@Veykril Veykril force-pushed the veykril/push-tsxunswownmm branch 3 times, most recently from f7d13a9 to 2073e08 Compare June 20, 2025 09:12
@Veykril Veykril force-pushed the veykril/push-tsxunswownmm branch from 2073e08 to 28acf8c Compare June 20, 2025 09:13
@Veykril
Copy link
Member Author

Veykril commented Jun 20, 2025

Benchmarks look fairly noisy again to me

@MichaReiser
Copy link
Contributor

Not sure, 5% is a bit more than usual.

@Veykril
Copy link
Member Author

Veykril commented Jun 20, 2025

Well the increase seems to stem from ingredient fetching which means its likely the IngredientCache missing being more expensive after this

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