On Thursday, June 24, 2021 at 3:09:29 PM UTC-5 Edward K. Ream wrote:

> The Position class should never ever need any kind of extension, so 
adding slots is protection, pure and simple.

Slots also reduce the stress on python's GC (garbage collector) and slots 
also reduce access times to ivars. However, Leo already is careful not to 
allocate positions needlessly, so the resulting performance improvements 
are of little practical importance.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/0e279fbb-01bd-4531-b862-a16da963a452n%40googlegroups.com.

Reply via email to