neoneo-go/pkg
Anna Shaleva 191cc45032 core: sort items in MemoryStore.Seek
MemoryStore is used in a MemCachedStore as a persistent layer in tests.
Further commits suppose that persistent storage returns sorted values
from Seek, so sort the result of MemoryStore.Seek.

Benchmark results for 10000 matching items in MemoryStore compared to
master:
name          old time/op    new time/op    delta
MemorySeek-8     712µs ± 0%    3850µs ± 0%   +440.52%  (p=0.000 n=8+8)

name          old alloc/op   new alloc/op   delta
MemorySeek-8     160kB ± 0%    2724kB ± 0%  +1602.61%  (p=0.000 n=10+8)

name          old allocs/op  new allocs/op  delta
MemorySeek-8     10.0k ± 0%     10.0k ± 0%     +0.24%  (p=0.000 n=10+10)

For details on implementation efficiency see the
https://github.com/nspcc-dev/neo-go/pull/2193#discussion_r722993358.
2021-10-21 10:05:12 +03:00
..
compiler compiler: do not emit code for unused imported functions 2021-10-13 15:56:07 +03:00
config rpc: implement findstates RPC handler 2021-10-13 11:41:05 +03:00
consensus consensus: fix nonce handling 2021-07-21 19:06:19 +03:00
core core: sort items in MemoryStore.Seek 2021-10-21 10:05:12 +03:00
crypto keys: reuse coordLen where appropriate 2021-08-26 17:30:04 +03:00
encoding util: move ArrayReverse into package of its own 2021-07-19 22:57:55 +03:00
interop interop: adjust documentation 2021-09-08 17:53:09 +03:00
io *: make tests use TempDir(), fix #1319 2021-08-26 17:29:40 +03:00
network network: request headers in parallel, fix #2158 2021-10-06 15:25:54 +03:00
rpc Merge pull request #2207 from nspcc-dev/rpc/gethistoricalstate 2021-10-13 15:27:51 +03:00
services gomod: use nspcc-dev's fork of go-ordered-json 2021-09-15 15:01:01 +03:00
smartcontract nef: add Source field 2021-09-24 00:19:37 +03:00
util util: reduce allocations in util.Uint256DecodeStringLE 2021-08-17 16:53:39 +03:00
vm vm: catch out-of-bounds exceptions, fix #2208 2021-10-11 17:28:00 +03:00
wallet wallet: do not store file handle 2021-10-06 15:29:52 +03:00