Open Paebbels opened 3 years ago
@mplanchard any updates on this issue?
Hey @Paebbels, sorry for the radio silence on this. I've switched to writing Rust professionally, and I'm generally using non-python languages for my hobby projects these days, making it a bit harder to find the time to maintain projects like this. Would you be interested in taking this one over?
Hello @mplanchard, I think taking over the whole pydecor repository would be too much. I'm not into all the details of the repo and also not it's used techniques like tox or how you did tests. Anyhow, I appreciate the offer.
I could imagine to co-maintain the repo and maybe got more into the details in the future.
After pushing my initial source in #9 for an
export
decorator, a portion of the code was changed that creates lots of problems.Original code for adding a declared entity to
__all__
:After modification:
The differences are:
Drawback of the final implementation:
__all__
e.g. for documentation purposes to__api__
. This variable stays empty, because:__api__
list
object adds items into preallocated spaces for new items and resizes only from time to time.Here is an outlook to the performance impact of original vs. final implementation:
timeit(original)
timeit(final)
Assuming
O(n²)
:Other references: Python concatenation vs append speed on lists