[proposal] Variadic slice push() and pop() mechanism #15526

241 views
Skip to first unread message

Michael Jones

unread,
May 3, 2016, 9:29:51 PM5/3/16
to golan...@googlegroups.com
I submitted an efficiency/clarity-related Go language proposal earlier today concerning stacks and bounds checking. It’s implementation requires a choice of notation. Several notations are outlined, introducing interesting and potentially contentious concepts. It would be delightful to hear comments on these of suggestions of alternative constructs useful for using a slice as an efficient stack as outlined here:

https://github.com/golang/go/issues/15526

This does not fix any crippling flaw but addresses a compute intensive Go performance concern that commonly costs me 10%-15% of runtime unless sidestepped by compiling with bounds checking disabled. The proposal should allow slightly faster performance than this with normal bounds checking and Go 1 promise mode.

Several good observations have been made since the issue was opened and are under investigation right now. Thanks for all advice!

— 
Michael Jones, CEO  •  mic...@wearality.com  •  +1 650 656-6989 
Wearality Corporation  •  289 S. San Antonio Road  •  Los Altos, CA 94022

Reply all
Reply to author
Forward
0 new messages