Skip to content

Python: Promote shared type tracking library#6063

Merged
tausbn merged 2 commits into
github:mainfrom
tausbn:python-promote-type-tracking-library
Jun 14, 2021
Merged

Python: Promote shared type tracking library#6063
tausbn merged 2 commits into
github:mainfrom
tausbn:python-promote-type-tracking-library

Conversation

@tausbn

@tausbn tausbn commented Jun 11, 2021

Copy link
Copy Markdown
Contributor

This was slightly messier than anticipated, as I hadn't accounted for
the dozen uses of startInAttr in our codebase. To circumvent this,
I decided to put the type tracking implementation in the internal
directory, and wrap it with a file that ensures the old interface still
works.


No change note required as the interface didn't change.

Before merging, I intend to run a test to see how the refactoring added by hvitved affects performance. It should (hopefully) only make it faster.

This was slightly messier than anticipated, as I hadn't accounted for
the dozen uses of `startInAttr` in our codebase. To circumvent this,
I decided to put the type tracking implementation in the `internal`
directory, and wrap it with a file that ensures the old interface still
works.
@tausbn tausbn added the no-change-note-required This PR does not need a change note label Jun 11, 2021
@tausbn tausbn marked this pull request as ready for review June 11, 2021 20:57
@tausbn tausbn requested a review from a team as a code owner June 11, 2021 20:57

@RasmusWL RasmusWL left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides performance, this change looks good to me 👍

@tausbn

tausbn commented Jun 14, 2021

Copy link
Copy Markdown
Contributor Author

Ah yes, performance. Here are the numbers: https://github.com/dsp-testing/tausbn-dca/tree/run/python-promote-type-tracker/reports

Not obviously better (or worse, for that matter), but I think it's likely that this only really makes a difference on very large projects.

@tausbn tausbn merged commit c6c9a51 into github:main Jun 14, 2021
@tausbn tausbn deleted the python-promote-type-tracking-library branch June 14, 2021 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-change-note-required This PR does not need a change note Python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants