Opened 11 years ago
Closed 11 years ago
#2375 closed defect (fixed)
Improve performance of bootstrapped compiler
Reported by: | sjoelund.se | Owned by: | sjoelund.se |
---|---|---|---|
Priority: | high | Milestone: | 1.9.0 |
Component: | MetaModelica | Version: | trunk |
Keywords: | Cc: |
Description
Currently, roughly 30% of time is spent calling setspecific/getspecific. If we pass the pointer around to each function, we do not need to do this. We should still allow getspecific to be used so we can throw from external functions.
This is a good alternative to pass thread-specific, previously global data anyway.
Change History (4)
comment:1 Changed 11 years ago by sjoelund.se
comment:2 Changed 11 years ago by sjoelund.se
- Component changed from Backend to Bootstrapping
- Milestone changed from 1.9.0 to 2.0.0
- Owner changed from probably noone to sjoelund.se
comment:3 Changed 11 years ago by sjoelund.se
- Milestone changed from 2.0.0 to 1.9.0
comment:4 Changed 11 years ago by sjoelund.se
- Resolution set to fixed
- Status changed from new to closed
Fixed in r17555 (mostly; there are still parts of code that uses MMC_TRY() instead of the faster MMC_TRY_INTERNAL())
Also, 17% longjmp, 9% setjmp, 25% GC_malloc