Netflix / x-element

A dead simple starting point for custom elements.
Apache License 2.0
28 stars 12 forks source link

Cache static analysis per-class and reuse during initialization. #28

Closed theengineear closed 3 years ago

theengineear commented 5 years ago

23 improves the factoring of x-element. Another refactor we would like to take on is handling analysis at first construction and caching the result to be shared across all future instances.

Currently, we do the same "static" analysis per instance, which is mostly duplicative. Ideally, we would be able to initialize with a cached analysis value which basically just binds the current instance to all the methods etc.

Related to #31