[aot] use hashtable for caching typespec of classes
authorBernhard Urban <bernhard.urban@xamarin.com>
Tue, 17 May 2016 17:43:25 +0000 (10:43 -0700)
committerBernhard Urban <bernhard.urban@xamarin.com>
Wed, 25 May 2016 16:48:55 +0000 (09:48 -0700)
commit34687fb5a6c772becec2764299b6049b986cd3f9
tree385a46abdf1230090f032e01877e6795465de9cd
parentaae26db0c28a0e8e6241d523ac006ae8e9047916
[aot] use hashtable for caching typespec of classes

I had a look in vtunes for

```
$ mono/mini/mono-sgen --stats -O=all --aot=threads=1,asmonly ~/work/benchmarker/tests/fsharp/lib/bootstrap/4.0/FSharp.Compiler.dll
```

and that method showed up as hot.

With this change I get an improvement from ~27.4s down to ~24.3s on my
machine.
mono/mini/aot-compiler.c