[go-nuts] opencv with my golang project

2020-05-21 Thread Ali Hassan
Opencv install [github.com/shrkwd/opencv-js] Os : Linux 18.04 // opencv file // video features // utils file to start When I compile my project , everything fine but opencv can't start. -- You received this message because you are subscribed to the Google Groups "gol

[go-nuts] Re: opencv with my golang project

2020-05-21 Thread Brian Candler
github.com/shrkwd/opencv-js That link gives a 404. Is it a private repository? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegro

[go-nuts] Re: How to dump cfg for method ?

2020-05-21 Thread eric fang
Does anyone know this? Or this is an unimplemented feature ? 在 2020年5月19日星期二 UTC+8下午7:49:53,eric fang写道: > > How to generate the cfg of the following Replace method ? I used this > command "GOSSAFUNC=Replace:* go tool compile main.go" but it doesn't work. > Thanks. > > package main > > type byte

[go-nuts] Re: opencv with my golang project

2020-05-21 Thread Ali Hassan
This is not https://github.com/shkrwnd/openCV-js On Thursday, May 21, 2020 at 1:27:27 PM UTC+5, Ali Hassan wrote: > > Opencv install [github.com/shrkwd/opencv-js] > Os : Linux 18.04 > > // opencv > file >// > video features > // > utils file to start > > When I compile

[go-nuts] Re: opencv with my golang project

2020-05-21 Thread Ali Hassan
sorry i type wrong git link On Thursday, May 21, 2020 at 1:27:27 PM UTC+5, Ali Hassan wrote: > > Opencv install [github.com/shrkwd/opencv-js] > Os : Linux 18.04 > > // opencv > file >// > video features > // > utils file to start > > When I compile my project , everyth

[go-nuts] OPENCV + gO

2020-05-21 Thread Ali Hassan
*Loading module /opencv.js was blocked because of disallow MIME TYPE (TEXT/PLAIN) *ERROR: > > First >this is valid because my server handle these line > Then I add opencv file in /js folder . Next import cv from "/js/opencv.js"; but i have an error javascript

Re: [go-nuts] Re: http包的Respose,不全部读取就不能关闭吗?

2020-05-21 Thread dioptre
You ever get an answer to this? On Friday, March 15, 2013 at 9:24:30 PM UTC-7, Tong Sun wrote: > > Not to question the decision, but that seem really counter-intuitive, as I > think people stop web requests in the middle all the times. > > Why go insists on reading the _entire_ response body >

Re: [go-nuts] Re: http包的Respose,不全部读取就不能关闭吗?

2020-05-21 Thread Robert Engels
You can stop on the middle of the request - but then you cannot reuse the http connection. If you want more advanced reuse you need to transfer in chunks and have a higher level protocol Also, I think this is addressed in HTTP2 since all connections are multiplexed anyway. > On May 21, 2020

Re: [go-nuts] Is there a possible to add sync.Pool to io.copyBuffer

2020-05-21 Thread qingyunha
Thank you! I change the code as your suggestion, it reduce 10% cpu usage. 在 2020年5月21日星期四 UTC+8下午1:04:34,Ian Lance Taylor写道: > > On Wed, May 20, 2020 at 9:26 PM > wrote: > > > > Hi all: > > I write a simpile HTTP proxy,and find the most alloctions appear in > io.copyBuffer > > > >>> (pprof)

[go-nuts] Weird problem that CPU is nearly 100%

2020-05-21 Thread tokers
Hi! We have a go program (an api server) on a virtual machine(with 8 cores) with a long time stable running. However, the program recently suffered a weird problem that only a single CPU reached 100% usage while others were very low, in the meanwhile, the network bandwidth was totally zero, als

Re: [go-nuts] Weird problem that CPU is nearly 100%

2020-05-21 Thread Ian Lance Taylor
On Thu, May 21, 2020 at 8:55 PM tokers wrote: > > We have a go program (an api server) on a virtual machine(with 8 cores) with > a long time stable running. > However, the program recently suffered a weird problem that only a single CPU > reached 100% > usage while others were very low, in the m

[go-nuts] Re: opencv with my golang project

2020-05-21 Thread Brian Candler
OK, so far you've shown some HTML and some Javascript. However, you said you had a problem with a go project. Can you write a small standalone go program which reproduces the problem? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscr