Closed
Description
Page URL
https://dart.dev/language/generics.html
Page source
https://github.com/dart-lang/site-www/tree/main/src/language/generics.md
Describe the problem
The "Note" under https://dart.dev/language/generics#generic-collections-and-the-types-they-contain explains that generics are reified, but it doesn't mention anything about the impact that this has on the runtime performance of generics. Rust, for example, appears to monomorphize everything and Java appears to monomorphize nothing.
Expected fix
It might be useful to mention how well generics perform during runtime. That is, is there always some overhead associated with generics? Are there ways to (automatically) get rid of any overhead for the cost of larger binaries? (Cf. dart-lang/sdk#52722)
Additional context
No response