Closed GoogleCodeExporter closed 9 years ago
Superb MM! The best available!
Original comment by tf.ran...@gmail.com
on 17 Oct 2013 at 9:18
alright, the problem is I don't have a pc with more than 20gb of ram :)
but the array loads fine and fast? and after that is gets slow? or is it slow
when it almost has loaded the full array?
can you take some screenshots with process explorer (double click on your test
program and switch to "performance graph" when it is slow?
and maybe also the threads tab and double click on main thread so I can see the
stack?
Original comment by andre.mussche
on 19 Oct 2013 at 6:58
quick workaround (will be fixed in next release):
function TMediumThreadManager.GetMem(aSize: NativeUInt): Pointer;
var
loopcount: Integer;
...
pheader := FFreeMem[iMSB];
if (pheader <> nil) then
begin
loopcount := 0;
//check all sizes
repeat
if (pheader.Size >= allocsize) then
begin
iFreeMemIndex := iMSB;
Break;
end;
inc(loopcount);
if loopcount > 100 then //no endless scan, can make it slower and slower...
begin
pheader := nil;
Break;
end;
pheader := pheader.NextFreeItem;
until pheader = nil;
end;
...
Original comment by andre.mussche
on 21 Oct 2013 at 1:37
Original issue reported on code.google.com by
tf.ran...@gmail.com
on 17 Oct 2013 at 9:16