Update upstream source from tag 'upstream/2.10.0+ds'
Update to upstream version '2.10.0+ds'
with Debian dir f4cdd182fd6fb9c4409fc96e917a13f3d4758579
Sascha Steinbiss
2 years ago
18 | 18 |
- golint .
|
19 | 19 |
- go test -cover -race -count=1 -timeout=30s -run .
|
20 | 20 |
- go test -covermode=count -coverprofile=coverage.out -timeout=90s -run .
|
21 | |
- '[ ! -z "$COVERALLS_TOKEN" ] && $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN'
|
|
21 |
- if [ "$TRAVIS_BRANCH" = "master" ]; then $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN; fi
|
22 | 22 |
- cd bench; go test -run=Bench.* -bench=. -benchmem; cd ..⏎
|
|
0 |
# 2.10.0 (December 2021)
|
|
1 |
|
|
2 |
#62 : @nikhilk1701 found a memory leak where removed items are not directly eligible for garbage collection. There are no API changes.
|
|
3 |
|
0 | 4 |
# 2.9.0 (October 2021)
|
1 | 5 |
|
2 | 6 |
#55,#56,#57 : @chenyahui was on fire and greatly improved the peformance of the library. He also got rid of the blocking call to expirationNotification, making the code run twice as fast in the benchmarks!
|
77 | 77 |
n := len(old)
|
78 | 78 |
item := old[n-1]
|
79 | 79 |
item.queueIndex = -1
|
|
80 |
// de-reference the element to be popped for Garbage Collector to de-allocate the memory
|
|
81 |
old[n-1] = nil
|
80 | 82 |
pq.items = old[0 : n-1]
|
81 | 83 |
return item
|
82 | 84 |
}
|