flexagon: (Default)
[personal profile] flexagon
Weh. You know what sucks? Spending all week looking at an obscure multithready performance bug, that's what sucks. I suppose it's good that I now have a better understanding of the heap (there's one perprocess) and stacks (there's one per thread). I've also learned that you don't REALLY know for shit about your thread situation until you're running on a multi-CPU machine. But I don't know what is being synchronized on and thus ruining our scalability... no idea. :(

And yes! I would like some cheese with this. Goddamn it.

(I'm glad it's the weekend, by the way. I get to write a story about a transgression, for the writing class, but I found out this was the assignment only after I triple-promised myself to write a clean story this time. So I was like "Transgression! Woohoo, SEX WITH DEAD PEOPLE no wait I said I wouldn't do that." Ohhhhh well.)

yay for stacks and heaps

Date: 2005-10-17 12:03 pm (UTC)
From: [identity profile] jg26.livejournal.com
I didn't realize the thread/process implications of stacks and heaps... but it makes sense. Are there other implications other than memory, or is it all because of performace issues relating to the allocation/deallocation of memory?

I learned that in my new job, there really isn't going to be any need for dynamic memory allocation, and (since I'll be declaring everything statically) I can do all of my allocating on the stack, and worry less about memory leaks on the heap. I think this is generally the case when one is doing embedded programming.

Garbage collection scares me.

Date: 2005-10-19 08:37 am (UTC)
From: [identity profile] jg26.livejournal.com
I guess I need to read more about it. I just feel like it should be the responsibility of the developer, not the language, to worry about memory deallocation. How does an application "know" when you're done with some data structure? When you tell it it's done with it, that's when. ;) Yes, you may be immune to memory leaks, but it seems like you've lost some optimization control over your own code. This might just fit into the criticism of higher level languages, like java, that they are chronically slow & unoptimizable.

Date: 2005-10-17 01:26 pm (UTC)
From: [identity profile] bluechromis.livejournal.com
I suggest a nice cowgirl creamery red tam. With some rosemary crackers. MMMMMMMMmm.

Also, I do hope you didn't stick to your triple promise. :( Did everyone love your first one as much as I did?

Profile

flexagon: (Default)
flexagon

January 2026

S M T W T F S
    123
4 5678910
11121314151617
18192021222324
25262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 17th, 2026 06:30 pm
Powered by Dreamwidth Studios