Skip to content

Use slice in the context instead of maps

Compare
Choose a tag to compare
@grafov grafov released this 11 May 14:24
· 27 commits to master since this release

The context uses now slices for storage instead of maps. I found that I have no source code with the number of items in the context greater than ten. With such number of items the search in the slice is more efficient than in map. Also, the usage of the slice fixes order of context records that was not determined with maps.