]> Cypherpunks repositories - gostls13.git/commit
exp/locale/collate: changed trie in first step towards support for multiple locales.
authorMarcel van Lohuizen <mpvl@golang.org>
Sat, 28 Jul 2012 16:44:14 +0000 (18:44 +0200)
committerMarcel van Lohuizen <mpvl@golang.org>
Sat, 28 Jul 2012 16:44:14 +0000 (18:44 +0200)
commit601045e87a27178048c82c01e00c64bcb5bc8810
tree9f819a464469f38149d130c2cea837603011a5fd
parent48ca3f288c112130d6ab4afabdb375f970652874
exp/locale/collate: changed trie in first step towards support for multiple locales.
- Allow handles into the trie for different locales.  Multiple tables share the same
  try to allow for reuse of blocks.
- Significantly improved memory footprint and reduced allocations of trieNodes.
  This speeds up generation by about 30% and allows keeping trieNodes around
  for multiple locales during generation.
- Renamed print method to fprint.

R=r
CC=golang-dev
https://golang.org/cl/6408052
src/pkg/exp/locale/collate/build/builder.go
src/pkg/exp/locale/collate/build/table.go
src/pkg/exp/locale/collate/build/trie.go
src/pkg/exp/locale/collate/build/trie_test.go
src/pkg/exp/locale/collate/export.go
src/pkg/exp/locale/collate/table_test.go
src/pkg/exp/locale/collate/tables.go
src/pkg/exp/locale/collate/trie.go
src/pkg/exp/locale/collate/trie_test.go