In this pull request[1] I add GCC/Clang’s “__attribute__((hot))” to various
hot GC functions. This increases code size a small amount, and makes a very
small improvement in performance—see the attached graph. I think actually
marking some slow-path/error-handling functions as “__attribute__((cold))”
would do more to improve branch prediction in cases where we haven’t marked
things as “G_UNLIKELY”.

[1]: https://github.com/mono/mono/pull/1501
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to