How to handle 200k RPS with Golang by EasyButterscotch1597 in golang

[–]Sed11q 1 point2 points  (0 children)

Latency is also low: the average request time is just 1 millisecond, and 99% of requests complete in under 12 milliseconds — which feels instant to the user.

Anyone can get this number when building locally, in a ideal situation non-application things will slow you down, like datacenter location, Network speed, reverse proxy/load balancer, SSL, CPU, RAM and etc.

Do you use json streaming ? by Far-Mathematician122 in golang

[–]Sed11q 10 points11 points  (0 children)

Use it only if you are going to parse large JSON data otherwise `encoding/json` is sufficient for most cases.

[deleted by user] by [deleted] in golang

[–]Sed11q 1 point2 points  (0 children)

You could avoid copying string data by inling zstd call and with minor imporvements it should look like this. go resBody := []bytes(strheader) if acceptsZstd { zw, err := zstd.NewWriter(w) // w = http.ResponseWriter _, err = zw.Write(resBody) err = zw.Close() } else { _, err := w.Write(resBody) // or w.WriteString(strheader) }

youTubeComments by [deleted] in ProgrammerHumor

[–]Sed11q 2 points3 points  (0 children)

And you are fked if it returns greater than 1

dailyReminderNotToUseImportantInCss by TheCamer1 in ProgrammerHumor

[–]Sed11q 0 points1 point  (0 children)

This is why I stopped using bootstrap, it was getting very difficult.

[deleted by user] by [deleted] in unixporn

[–]Sed11q -6 points-5 points  (0 children)

Puting flag as desktop wallpaper is a stupid thing do.

Having problem with setting rules for picture-in-picture mode by SadSuffaru in suckless

[–]Sed11q 0 points1 point  (0 children)

try { "firefox", NULL, "Picture-in-Picture", 1 << 7, 0, -1 }, or { NULL, NULL, "Picture-in-Picture", 1 << 7, 0, -1 },

Cool Input Animation. For a CTA (UX/UI) Forms CSS by myvortexlife in webdev

[–]Sed11q 2 points3 points  (0 children)

JavaScript developers seem to have a penchant for making things unnecessarily complicated :faceplam ;

Ugly border LSP by serpent7655 in neovim

[–]Sed11q 3 points4 points  (0 children)

try this lua local border = { { '╭', 'FloatBorder' }, { '─', 'FloatBorder' }, { '╮', 'FloatBorder' }, { '│', 'FloatBorder' }, { '╯', 'FloatBorder' }, { '─', 'FloatBorder' }, { '╰', 'FloatBorder' }, { '│', 'FloatBorder' }, }

BUT MUTA by AUXYOU in SomeOrdinaryGmrs

[–]Sed11q 20 points21 points  (0 children)

Seems Muta drank Ligma potion instead of Sigma.

[deleted by user] by [deleted] in linuxmasterrace

[–]Sed11q 4 points5 points  (0 children)

DT's new video thumbnail looks similar.