-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance improvements #2
Comments
Hello! |
I've done some tests and it looks like atomic sync.Map is slower (about to 5k rps) than plain map with mutexes. At least on my 4cores i5 cpu. I'll be looking to test your lib and compare the results |
Wow, that actually doubled the RPS value. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello.
fasthttp
to reduce HTTP-library overheads.https://github.com/valyala/fasthttp
A related issue: julienschmidt/httprouter#117
To make this project really useful you need to be faster than this:
http://antirez.com/blogdata/216/redisvsmemcached.png
atomicmap
instead (methodGetByBytes
to get a value) — it is oriented on a lot of reads (less writes and unsets [it's required to useLockUnset()
, ATM :( ]).https://github.com/xaionaro-go/atomicmap
http-cache/cache.go
Line 36 in 91198cf
Or, may be, it would be better to implement own mutexless thread-safe map.
http-cache/cache.go
Line 24 in 91198cf
I'd suggest to use pointers, instead.
The text was updated successfully, but these errors were encountered: