FuelLabs / sway

🌴 Empowering everyone to build reliable and efficient smart contracts.
https://docs.fuel.network/docs/sway/
Apache License 2.0
62.76k stars 5.36k forks source link

Only check non-parent monomorphization args #6549

Closed xunilrj closed 1 week ago

xunilrj commented 2 weeks ago

Description

This PR fixes https://github.com/FuelLabs/sway/issues/6384

The performance improvement is probably coming from just aggregating spans when there is an error.

Checklist

codspeed-hq[bot] commented 2 weeks ago

CodSpeed Performance Report

Merging #6549 will improve performances by 18.83%

Comparing xunilrj/check-monomorphization-non-parent-only (0705c89) with master (520bfe9)

Summary

⚡ 1 improvements ✅ 21 untouched benchmarks

Benchmarks breakdown

Benchmark master xunilrj/check-monomorphization-non-parent-only Change
âš¡ inlay_hints 3.8 ms 3.2 ms +18.83%