object88 / langd

A Language Server Protocol implementation in Go for Go
MIT License
7 stars 0 forks source link

Use minimum perfect hash for LSP function lookup #25

Closed object88 closed 6 years ago

object88 commented 6 years ago

Just for fun...

Consider replacing the stdlib map with a minimum perfect hash, as we will always know the exact set of keys. Performance gains are likely to be indistinguishable from native map in the overall performance view, but this is "neat".

object88 commented 6 years ago

Done.