Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/Snawoot/list

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/Snawoot/list

  • v0.1.0
  • Source
  • Go
  • Socket score

Version published
Created
Source

list

Go Reference

Improved version of "container/list" from Go stdlib:

  • Uses generics instead of interface values.
  • Uses own freelist allocator for list elements.

Benchmarks

Benchmarks versus original "container/list".

goos: linux
goarch: amd64
pkg: github.com/Snawoot/list
cpu: Intel(R) N100
BenchmarkContainerList/PushFront-4                     	11407059	        117.5 ns/op	      55 B/op	       1 allocs/op
BenchmarkContainerList/PushPopFront-4                  	10579866	        131.4 ns/op	      55 B/op	       1 allocs/op
BenchmarkContainerList/PushPopFrontImmediate-4         	13294423	        91.07 ns/op	      56 B/op	       1 allocs/op
BenchmarkFreelistList/PushFront-4                      	29593803	        43.41 ns/op	      49 B/op	       0 allocs/op
BenchmarkFreelistList/PushPopFront-4                   	28675177	        42.61 ns/op	      40 B/op	       0 allocs/op
BenchmarkFreelistList/PushPopFrontImmediate-4          	128021602	        9.493 ns/op	       0 B/op	       0 allocs/op
BenchmarkFreelistList/WarmedUpPushFront-4              	130466055	        9.313 ns/op	       0 B/op	       0 allocs/op
BenchmarkFreelistList/WarmedUpPushPopFront-4           	78485906	        14.48 ns/op	       0 B/op	       0 allocs/op
PASS
ok  	github.com/Snawoot/list	18.221s

FAQs

Package last updated on 12 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc