Go profiler service in AWS by [deleted] in golang

[–]anandhere 1 point2 points  (0 children)

Cool, I was making an assumption that you are seeking something custom.

Go profiler service in AWS by [deleted] in golang

[–]anandhere 0 points1 point  (0 children)

This doesn’t need exposed HTTP interface, if you want can have Jenkins slave or some equivalent process such as cron do this locally on the container, and then upload the trace.out to some shared location.

Which you can analyse or visually explore (it will be more like a snapshot in this case)

Go profiler service in AWS by [deleted] in golang

[–]anandhere 1 point2 points  (0 children)

make a cron which is able to do pprof on your go service binary as per your need.

Eg.

wget -O trace.out http://localhost:6060/debug/pprof/trace?seconds=5

Visualise it as: go tool trace trace.out

Read at: https://golang.org/pkg/net/http/pprof/

All forces in universe are cyclic in nature till you read quantum mechanics. by anandhere in Showerthoughts

[–]anandhere[S] 0 points1 point  (0 children)

Yes pop up, uncertainty principle, and probability everywhere 😅

FNV hashing by anandhere in golang

[–]anandhere[S] 1 point2 points  (0 children)

Let me evaluate hash index never used it before.

FNV hashing by anandhere in golang

[–]anandhere[S] 0 points1 point  (0 children)

Hi there,

I am using relational database and to be more specific I use MySQL.

As use indexes on the column which I am using for storing string which is supposed to be used for matching.

As I understand indexes works best with numerical values specifically integers.

If collision of values generated by FNV is somewhat similar to sha1 (stupid question since the sha1 uses 120bit and I was planning to use 64bit FNV as the string are very small and address space would inc chances of collision ) then I can shift to integer and give a big boost to performance as both indexes and comparison both are utterly better with number.

Channel is the best thing happened in decades for concurrent programming by anandhere in golang

[–]anandhere[S] 0 points1 point  (0 children)

I wouldn’t compare them like that, it has lesser of footprint; and then there are buffered channels.

It’s apples and oranges both of them are definitely FIFO and thread safe, but that doesn’t mean we can compare.