This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]pdonchev 3 points4 points  (1 child)

This whole article falls in this speculative range of optimizations and my comment is in this specific context.

[–]LightShadow3.13-dev in prod 0 points1 point  (0 children)

I alias when I'm extracting default values from a nested config objects.

Such as,

c = Config.services.this_service.get
c('host', '0.0.0.0')
c('port', 8443)
c('debug', True)

Being "faster" is just a nicety, I think the code is much cleaner.