Re: final protected private symbol
"Stephen R. van den Berg" <[email protected]>
| Newsgroups | gmane.comp.lang.pike.user |
|---|---|
| Message-ID | <[email protected]> |
Chris Angelico wrote: >On Wed, Nov 12, 2014 at 9:20 PM, Stephen R. van den Berg <[email protected]> wrote: >> The above guidelines would result in the most efficient and compact code. >- If you've fallen in love with Python's simplicity, ignore all these >keywords and leave everything public. >Has anyone benchmarked the various keywords and seen how much >performance improvement you get? In theory, 'final' at least ought to >result in faster code, but how much? Well, for user-level-dime-a-dozen-application-level-code I agree, and I probably wouldn't care either (unless it's a very tight loop which runs for a very long time); but when writing library code (e.g. a pgsql driver), it matters (even if it's only slightly). -- Stephen.