Skip to content

Feat/improvements#117

Open
andy9a9 wants to merge 2 commits intomvnmgrx:masterfrom
andy9a9:feat/improvements
Open

Feat/improvements#117
andy9a9 wants to merge 2 commits intomvnmgrx:masterfrom
andy9a9:feat/improvements

Conversation

@andy9a9
Copy link

@andy9a9 andy9a9 commented Jul 10, 2024

  • replace if with elif where possible
    • if the first condition is true the next one can not be, so it doesn't make any sense to use the next if condition. This has a bunch of improvements on performance.
  • add generator_version attribute into symbol and footprint
    • Kicad v8 has this attribute defined to "8.0". So once reading/writing this kind of file the value shouldn't disappear.

If first condition is true the next one can not be. Simplify condition
validation. On the other hand, this has performance improvement.

Signed-off-by: Andrej Valek <andy@skyrain.eu>
@andy9a9 andy9a9 force-pushed the feat/improvements branch 2 times, most recently from 8777bc8 to af9d663 Compare December 19, 2024 18:29
Kicad v8 has this attribute defined to "8.0". So once reading/writing this
kind of file the value shouldn't disappear. Keep it backport compatible
with older version, where this attribute does not exist.

Signed-off-by: Andrej Valek <andy@skyrain.eu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant