lonely-lockley / archinsight

Simplicity in Code, Power in Design
https://archinsight.org
GNU Affero General Public License v3.0
51 stars 5 forks source link

Improve translator #72

Open lonely-lockley opened 8 months ago

lonely-lockley commented 8 months ago

Currently translator needs to link the whole project any time it is called. This will get very slow in the future. Translator must create some statistics for entities declared and cache it in memory (or Redis). We should define rules to check if project integrity is broken. For example if statistics says that an element is imported somewhere, it should cause full project linking if an element id is changed. Otherwise we can safely link a single file using existing statistics.