Opened 11 years ago

Closed 11 years ago

#2375 closed defect (fixed)

Improve performance of bootstrapped compiler

Reported by: Martin Sjölund Owned by: Martin Sjölund
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 by Martin Sjölund, 11 years ago

Also, 17% longjmp, 9% setjmp, 25% GC_malloc

comment:2 by Martin Sjölund, 11 years ago

Component: BackendBootstrapping
Milestone: 1.9.02.0.0
Owner: changed from probably noone to Martin Sjölund

comment:3 by Martin Sjölund, 11 years ago

Milestone: 2.0.01.9.0

comment:4 by Martin Sjölund, 11 years ago

Resolution: fixed
Status: newclosed

Fixed in r17555 (mostly; there are still parts of code that uses MMC_TRY() instead of the faster MMC_TRY_INTERNAL())

Note: See TracTickets for help on using tickets.