/sys/doc/ Documentation archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: plan9 style arg parse module



str = str[1:] is not real cheap in the
current implentation of the vm. tracking
the index is much more efficient. You
currently generate an alloc and copy
for each string slice. Arrays are
implmented differently and it much cheap
since there is no data copy. As it says
in the bug page I am not happy with the
current string implentation and I am working
on something much more efficient.

phil