Skip to content

Conversation

@skycaptain
Copy link

This change avoids using the inspect module which is considerably slow. Instead members are iterated using dir and getattr.

See priv-kweihmann/oelint-adv#190 for discussion.

After this change oelint_parser.cls_item.Item.GetAttributes is still the slowest function, although it speeds up by a factor of three.

@lgtm-com
Copy link

lgtm-com bot commented Nov 12, 2020

This pull request introduces 1 alert when merging 4a348ec into 2dc2975 - view on LGTM.com

new alerts:

  • 1 for Unused import

This change avoids using the inspect module which is considerably slow. Instead members are iterated using dir and getattr.
@priv-kweihmann priv-kweihmann merged commit 89486c6 into priv-kweihmann:main Nov 13, 2020
@priv-kweihmann
Copy link
Owner

Thanks a lot

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.

2 participants