of     2   
chevron_rightchevron_rightchevron_right

Vitouliss14
#61583882Tuesday, January 17, 2012 3:11 AM GMT

1. Plays some Minecraft 2. See's Battery go down from 85% to 76% 3. 9-Cell battery is almost dead in under 1 hour and 30 minutes 4. Looks at Processes 5. javaw.exe Memory: 600,000k (average is about 520,000k) 6. Me: O_- WHY MUST IT KILL MY BATTERY!!!
myrkos
#61584061Tuesday, January 17, 2012 3:14 AM GMT

cuz it's Java
Aaaboy97
#61584064Tuesday, January 17, 2012 3:14 AM GMT

I once made a terrain generator in ROBLOX, and the memory was at 1.6 million k and then I tried re-running it and it crashed at 300,000k memory with an "Out of memory" error
blockoo
#61584457Tuesday, January 17, 2012 3:20 AM GMT

it's horribly inefficient
stravant
Forum Moderator
#61584597Tuesday, January 17, 2012 3:23 AM GMT

Because, that's the cost of JIT compilation, maintaining a lot of extra data about the program execution so that it can be run in an optimized way in real-time.
blockoo
#61584692Tuesday, January 17, 2012 3:24 AM GMT

lol, JIT reminds me of a slang word that idiots at my school say when they want to sound tough
needSOMEHEAT
#61588767Tuesday, January 17, 2012 5:01 AM GMT

@blockoo same here lol i recall jit means someone younger then you :P -Smith
needSOMEHEAT
#61588815Tuesday, January 17, 2012 5:03 AM GMT

@blockoo that's also a floridian term, only people in florida use it *grins* -Smith
sncplay42
#61592099Tuesday, January 17, 2012 11:07 AM GMT

>Plays game that works with a whole bunch of 16*16*128 grids >Blames VM for memory usage
Vitouliss14
#61602472Tuesday, January 17, 2012 8:53 PM GMT

@SNCPlay42 I know I know....VM is inefficient itself.
Vitouliss14
#61602574Tuesday, January 17, 2012 8:55 PM GMT

Ignore my last post...
nightname
#61604581Tuesday, January 17, 2012 9:38 PM GMT

That is quite strange. In all of the java applications I have made, they have all taken quite a small sum of memory. Even applications which are ridiculed with bad maths.
ScripterJohn13
#61611211Tuesday, January 17, 2012 11:39 PM GMT

Blame notch, java doesn't take up alot of memory. Notch just doesn't clean things the code doesn't need. If you ever looked at his code, it is messy. I know that when you change worlds, it creates a new world class, and never destroys the old one, nor does it reuse the old one.
popinman322
#61615921Wednesday, January 18, 2012 1:06 AM GMT

"Because, that's the cost of JIT compilation, maintaining a lot of extra data about the program execution so that it can be run in an optimized way in real-time." I always thought that it was because Java keeps memory in standby to allow for faster access. :o
myrkos
#61616618Wednesday, January 18, 2012 1:17 AM GMT

Popinman, where else would it keep the memory? On the hard drive?
JulienDethurens
#61616828Wednesday, January 18, 2012 1:20 AM GMT

@myrkos On a CD, duh! Why do you think you need to buy most games with a CD? They write every variable on the CD, at runtime!
popinman322
#61616947Wednesday, January 18, 2012 1:22 AM GMT

@Myrkos Where did that question come from?
JulienDethurens
#61617129Wednesday, January 18, 2012 1:25 AM GMT

@popinman322 "I always thought that it was because Java keeps memory in standby" The fastest to access thing is the random access memory. If not in the RAM, where would the memory be? On the hard drive?
myrkos
#61617145Wednesday, January 18, 2012 1:26 AM GMT

>Where did that question come from? "I always thought that it was because Java keeps memory in standby to allow for faster access. :o" What do you mean by standby?
popinman322
#61617224Wednesday, January 18, 2012 1:26 AM GMT

@Myrkos Allocated and ready for use when required by the VM.
myrkos
#61617362Wednesday, January 18, 2012 1:29 AM GMT

You mean the VM allocates lots of unnecessary RAM for when the application might need it it doesn't have to spend time allocating then?
popinman322
#61617514Wednesday, January 18, 2012 1:31 AM GMT

Oyus
myrkos
#61617642Wednesday, January 18, 2012 1:33 AM GMT

K then that's somewhat correct... it does do that, which indeed make allocations faster than C(++) allocations, but it also requires the garbage collector to come in and clean up every now and then.
popinman322
#61617797Wednesday, January 18, 2012 1:35 AM GMT

We always have the Runtime! Runtime.getRuntime().gc() // :D
JulienDethurens
#61619017Wednesday, January 18, 2012 1:53 AM GMT

What? Java really does that? But.. If it was to make accessing memory faster, I'd understand, but doing that just to make ALLOCATIONS faster? I'd call that more a waste of memory than anything else..

    of     2   
chevron_rightchevron_rightchevron_right