[go-nuts] Re: gosyms - ordered, indexed symbol tables

2016-08-24 Thread fncodr
self is a preference, I prefer not wasting brain power thinking up new names for receivers. The custom bsearch is twice as fast, probably because of no method calls; anyway, it's not rocket surgery. Did you see the benchmarks section in the README? /fncodr Den torsdag 25 augusti 2016 kl. 06:01

[go-nuts] Re: gosyms - ordered, indexed symbol tables

2016-08-24 Thread Tamás Gulácsi
Using "self" is not idiomatic in go. Aside this little naming convention, as I see, GetSym reimplements sort.Search, which is unnecessary. Have you benchmarked this against a sorted slice of strings? -- You received this message because you are subscribed to the Google Groups "golang-nuts" gro

[go-nuts] Re: gosyms - ordered, indexed symbol tables

2016-08-24 Thread fncodr
Oh, and any ideas on how to squeeze some more performance out of this or otherwise improve the code are most welcome, of course. /fncodr Den torsdag 25 augusti 2016 kl. 02:36:55 UTC+2 skrev fnc...@gmail.com: > > gosyms provides symbols that sort effectively by comparing index instead > of name.