Arrays are always allocated out-of-line
unordered-containers uses lots of small arrays (length <= 16). These arrays are always allocated out-of-line by a call to allocate. I suspect this is bad for performance. We should look into supporting inline-allocation, perhaps by using a new newSmallArray# primop and/or by spotting calls to newArray# with a small, statically-known size.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.6.3 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |