Comments (8)
Hello @jcbritobr sounds like you are using Visual Studio code. I suggest setting the autobuild setting to false, as discussed here: microsoft/vscode-go#696 (comment)
The problem is that building the cgo code takes more time, hence the slowdown. Try setting "go.gocodeAutoBuild": false
in your vscode settings.
Hope that helps!
from gocv.
Hi @deadprogram, good morning,
Setting "go.gocodeAutoBuild": false doesn't work. When you type any function of package, the cc1plus got high cpu and memory usage. Also the entire intellisense stop working. I will see if i fill a bug in vscode bug tracking, proper golang page:
Here is a cpu timeline snapshot of my machine:
from gocv.
This seems like an VS.CODE editor problem with Go packages that use cgo extensively, not something to do with GoCV itself. You might need to restart your editor, or ? I'm not really sure how to help you here.
from gocv.
Yes. I post only as a warning to this issue with gocode tooling. I will fill a bug in vscode or go tooling page, and use gocv with kate. Thank you for answare. Nice work with this package.
from gocv.
I appreciate you posting, since I actually was wondering why my own machine was doing this when editing code. I have almost exactly the same config as you do, VS code on Linux.
However my performance slowdown kicks in only occasionally, and it was when I make changes to the package itself, waiting for the updated golang tooling to update my workspace's "Problems" pane. When I turned off that setting, seems like have not had that problem. I was just examining my system monitor as well, and I did not see the spike you referred to.
from gocv.
I have a new machine and just installed the latest vscode. Seems like it is working more efficiently now? Perhaps it is my faster processor. Anyone else have any comments?
from gocv.
If you are consuming GoCV and not modifying it, using the go install
instructions provided by @directive-cary in #63 addresses this. I will close this issue once the next release goes out.
from gocv.
These docs were released as part of v0.8.0 so now closing. Thanks again!
from gocv.
Related Issues (20)
- How to parse blob?
- Memory leak in ORB detector
- triangulatePoints
- Error installing OpenCV libtbb2 and libdc1394-22-dev not found HOT 1
- Issue using gocv 0.35.0 in combination with opencv 4.8.1 in docker HOT 1
- Update to Support Additional Fonts from HersheyFont HOT 1
- MinMaxIdx function does not return the correct index. HOT 2
- BoxPoints, MinAreaRect inconsistent with C++ version of OpenCV, causing precision issues HOT 2
- Why is Mat used for in Range instead of a scalar wit hsv? And how can I sat Mat to a lower HSV range? HOT 2
- Consider adding VideoWriterFileWithAPI?
- Compilation yields "/bin/sh: line 0: cd: OLDPWD not set" on MacOS HOT 2
- Severe Memory Leak During Conversion between Image and gocv.Mat HOT 1
- go run . doesn't work on macos sonoma 14.2.1 (23C71) HOT 3
- Missing ArUco when installing OpenCV Debian Repository HOT 2
- building a static binary with ` gocv/opencv:4.9.0-static` fails HOT 4
- Not able to run simple example HOT 1
- Skew Correction
- Unable to complete install with CUDA (make install_cuda) HOT 3
- make install BUILD_SHARED_LIBS=OFF fails on Ubuntu 22.04 HOT 1
- windows error: invalid cast from type 'pthread_t' {aka 'ptw32_handle_t'} to type 'void* HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gocv.