haxe.opt icon indicating copy to clipboard operation
haxe.opt copied to clipboard

Missing sample about "converting ALL dynamic access to inline classes"

Open ex opened this issue 9 years ago • 3 comments
trafficstars

I'm wondering what is the meaning of this. Is this regarding the use of Dynamic classes? or about accessing members with: instance["something"]?

ex avatar Mar 01 '16 20:03 ex

Hi ! I don't quite get your questions, I interpreted it as "what is the topic ?" so I specified in the entry that really, it is about evaluating if the static fields of the class that get the "implement dynamic" are contaminated and if their static fields output dynamic accessed rather than static accesses.

delahee avatar Mar 02 '16 08:03 delahee

Hi @delahee I'm very sorry about the confusion, I was talking about this point:

2- We took weeks to profile the haxe compiler output properly, and forked the ancestor of heaps, h3d, we spent time tuning it and removing allocation, adding local variables objects and better allocation policies. Especially for Byte Buffers in the GL manipulation api's copies which crippled every haxe frameworks. We also spent time converting ALL dynamic access to inline classes. Dynamic acceses are the root of all haxe evil.

I don't know what do you mean with "dynamic access" and this seems very interesting to me, can you share a snippet of code of what is the wrong way (using dynamic access) and how can it be fixed (using inline classes). It would be very helpful.

Many thanks!

ex avatar Mar 02 '16 15:03 ex

Ok I'll plan that !

delahee avatar Mar 08 '16 17:03 delahee