-
-
Notifications
You must be signed in to change notification settings - Fork 250
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
Memory leak, or forgotten thread? #1040
Comments
This might be the sourcemap parser. |
No; SourceMap parser is there since 2.0 RC and according to OP the problem started around 2.0.8. |
I can't remember exact version, but definitely this problem is relative new for me. Version 2.0 has been ok. It starts in version 8, maybe 9. It is too bad there is no debug logging inside. Just something like "Thread start", "Thread end" etc. But I know it is complicated. I'll try again after VS 2013 Update 2 and we will see. Maybe some magic will happen :-) |
Please try with this visx http://1drv.ms/1qyt0P3. You will probably get a graceful exception message when testing compiler to its limit.. but performance-wise, it should be better than before. |
I will sent the PR, once I get confirmation from you guys. TIA! |
Hi @am11 - no noticeable change I'm afraid, LESS compilation time is still in the order of 10 seconds (and VS cpu/memory usage remains elevated for 30+ seconds after compilation is complete). |
@ctolkien, thanks for reverting. Apparently, your issue is slightly different than one reported by @RaptorCZ (which I think should be fixed by the aforementioned build). For your issue, please try with this build: http://1drv.ms/1gyDhBb There is a new settings PS: we need to optimize Base64Vlq class code; I merely translated Mozilla's JavaScript code for Base64Vlq to C# and add few things. This is where its spending most time.. |
I'll take a look at the performance now. |
This is caused by a horrible mix of I'm cleaning that up, which should make this orders of magnitude faster, and will hopefully finish tonight. |
On a related note, I believe that |
@SLaks Do you think it's possible to make those changes within the next 6 hours? I'm going to announce the release of 2.1 at TechEd in my talk at 5pm CST so it would be cool it could be released before then. |
@SLaks, yes, we need to optimize Base64Vlq class code; I just translated Mozilla's JavaScript code to C#. The unit tests were written the same way, not ditto but they were inspired by form Mozilla's repo too. I am pretty confident, the correctness is not the issue with the current implementation of the class (sadly the performance is). Nonetheless, I used this online tool http://murzwin.com/base64vlq.html as a reference (for manual verification). Also, if you want I can help with testing with your interim commits. |
We should also remove all use of |
As discussed at madskristensen#1040.
As discussed at madskristensen#1040.
@SLaks, when I try to test a Json.Net command in immediate window during debug, it says that Newtonsoft.json.dll is included twice. I can't find duplicate references. Could it be due to the fact that JSON editor in VS 2013 Update 2 is using JSON.NET and hence conflicting with the one we have included in project? |
It could also be coming from some other extension. If it is always included in VS, we should disable Copy Local on our reference. |
What version is in PrivateAssemblies? |
We are using latest: VS is using older: Here is the raw data:
|
Then we should probably stick with the problem. |
You are right. I think VS team should use alias for it, so users don't get into trouble. |
Aliases are a compiler feature; VS using an alias wouldn't help at all. If an alias helps (which I suspect it wouldn't), it would be because the debugger sees it in the current project configuration. The VS debugger team ought to devise a way to allow usages with these conflicts. |
Don't know if it make sense to report it on Connect or just leave it with @madskristensen / @spadapet.. |
For suggestions/bugs with the VS debugger, use Connect. It'll get to the right people. |
@spadapet, done. Here is the link to Connect feedback item: https://connect.microsoft.com/VisualStudio/feedback/details/873636/. |
Hi,
there must be some problem inside LESS compiler in version 2.x. If I remember, it started around 2.0.8 build and persists.
I'll open solution and memory for VS process is around 600-700MB, CPU 0%. I'' start compilation of LESS file and do this a few times. Then VS process starts jumping to memory around 2GB and CPU 30%, then back to original values (800 MB and 0%) and back to 2GB and 30% and so on. Only way how to fix it is restart VS.
Any idea what is wrong inside? Tried previous version (pre 2.x) of WE and all works fine. So problem is maybe in any async method.
Is there any way how to trace problem?
Thanx
The text was updated successfully, but these errors were encountered: