Home » Community » U++ community news and announcements » Core 2019
Re: Core 2019 [message #51856 is a reply to message #51855] |
Sun, 09 June 2019 23:11 |
|
mirek
Messages: 13975 Registered: November 2005
|
Ultimate Member |
|
|
Novo wrote on Sun, 09 June 2019 21:39mirek wrote on Sun, 09 June 2019 12:54Looking at peak profile, it looks like there are very little "small" blocks and most of memory is in those 80 "huge" (that means >64KB) blocks.
Can that be correct?
Mirek
It is hard to tell. I'm not controlling that.
Another problem is that all allocations/deallocations happen in CoWork's threads. I cannot call RDUMP(*PeakMemoryProfile()) inside of CoWork because it will be called at least 181363 times ...
Why would you want to? Peak is really peak, it is profile at the moment when there is maximum memory use.
One caveat about profile is that it is only profile of current thread for small and large blocks. But our problem is with huge blocks anyway.
Quote:
The app is parsing Wikipedia XML dump. It is decompressing a bz2 archive and parsing chunks of XML. After that my own parser is parsing Mediawiki text.
As a first pass my parser is building a list of tokens organized as a Vector<> (I'm not inserting in the middle )
My parser is avoiding memory allocation at all possible costs. I'm calling Vector::SetCountR and reusing these vectors. When I need to deal with String I'm using my own not owning data string class.
Well, maybe there can also be an interference with MemoryTryRealloc (as those Vectors grow). Perhaps you can test what happens if
bool MemoryTryRealloc(void *ptr, size_t& newsize) {
return false; // (((dword)(uintptr_t)ptr) & 16) && MemoryTryRealloc__(ptr, newsize);
}
Quote:
Unfortunately, I cannot control memory allocation with XmlParser. I have to relay on the default allocator.
There are not many... BTW, are you parsing memory - XmlParser(const char *), or streams - XmlParser(Stream& in) ?
Mirek
|
|
|
|
|
Core 2019
By: mirek on Fri, 07 June 2019 13:56
|
|
|
Re: Core 2019
By: Novo on Fri, 07 June 2019 17:51
|
|
|
Re: Core 2019
By: mirek on Fri, 07 June 2019 18:01
|
|
|
Re: Core 2019
By: Novo on Fri, 07 June 2019 23:00
|
|
|
Re: Core 2019
By: Novo on Sat, 08 June 2019 18:30
|
|
|
Re: Core 2019
By: mirek on Sat, 08 June 2019 18:40
|
|
|
Re: Core 2019
By: Novo on Sat, 08 June 2019 19:44
|
|
|
Re: Core 2019
By: mirek on Sat, 08 June 2019 20:38
|
|
|
Re: Core 2019
By: Novo on Sat, 08 June 2019 21:45
|
|
|
Re: Core 2019
By: Novo on Sat, 08 June 2019 21:42
|
|
|
Re: Core 2019
By: mirek on Sat, 08 June 2019 18:31
|
|
|
Re: Core 2019
By: Novo on Sat, 08 June 2019 21:54
|
|
|
Re: Core 2019
By: Novo on Sat, 08 June 2019 22:06
|
|
|
Re: Core 2019
By: mirek on Sun, 09 June 2019 10:03
|
|
|
Re: Core 2019
By: Novo on Sun, 09 June 2019 15:20
|
|
|
Re: Core 2019
By: mirek on Sun, 09 June 2019 16:33
|
|
|
Re: Core 2019
By: mirek on Sun, 09 June 2019 16:43
|
|
|
Re: Core 2019
By: Novo on Sun, 09 June 2019 17:34
|
|
|
Re: Core 2019
By: mirek on Sun, 09 June 2019 18:54
|
|
|
Re: Core 2019
By: Novo on Sun, 09 June 2019 21:39
|
|
|
Re: Core 2019
By: mirek on Sun, 09 June 2019 23:11
|
|
|
Re: Core 2019
By: mirek on Sun, 09 June 2019 23:25
|
|
|
Re: Core 2019
By: mirek on Mon, 10 June 2019 17:27
|
|
|
Re: Core 2019
By: Novo on Mon, 10 June 2019 18:01
|
|
|
Re: Core 2019
By: mirek on Mon, 10 June 2019 18:17
|
|
|
Re: Core 2019
By: Novo on Mon, 10 June 2019 18:21
|
|
|
Re: Core 2019
By: Novo on Mon, 10 June 2019 18:45
|
|
|
Re: Core 2019
By: Novo on Mon, 10 June 2019 18:18
|
|
|
Re: Core 2019
By: Novo on Mon, 10 June 2019 18:34
|
|
|
Re: Core 2019
By: Novo on Sun, 09 June 2019 17:02
|
|
|
Re: Core 2019
By: Novo on Sun, 09 June 2019 17:15
|
|
|
Re: Core 2019
By: mirek on Sun, 09 June 2019 20:56
|
|
|
Re: Core 2019
By: mirek on Sun, 09 June 2019 18:51
|
|
|
Re: Core 2019
By: Novo on Fri, 21 June 2019 05:43
|
|
|
Re: Core 2019
By: Novo on Fri, 21 June 2019 06:14
|
|
|
Re: Core 2019
By: mirek on Fri, 21 June 2019 09:16
|
|
|
Re: Core 2019
By: mirek on Fri, 21 June 2019 09:23
|
|
|
Re: Core 2019
By: Novo on Fri, 21 June 2019 19:58
|
|
|
Re: Core 2019
By: Novo on Fri, 21 June 2019 20:28
|
|
|
Re: Core 2019
By: Novo on Sat, 22 June 2019 02:51
|
|
|
Re: Core 2019
By: Novo on Sat, 22 June 2019 02:53
|
|
|
Re: Core 2019
By: mirek on Sat, 22 June 2019 10:23
|
|
|
Re: Core 2019
By: Novo on Sat, 22 June 2019 17:49
|
|
|
Re: Core 2019
By: mirek on Sat, 22 June 2019 22:22
|
|
|
Re: Core 2019
By: Novo on Sat, 22 June 2019 23:44
|
|
|
Re: Core 2019
By: mirek on Sun, 23 June 2019 08:21
|
|
|
Re: Core 2019
By: Novo on Sun, 23 June 2019 21:26
|
|
|
Re: Core 2019
By: mirek on Mon, 24 June 2019 09:22
|
|
|
Re: Core 2019
By: Novo on Mon, 24 June 2019 17:36
|
|
|
Re: Core 2019
By: mirek on Mon, 24 June 2019 18:42
|
|
|
Re: Core 2019
By: Novo on Mon, 24 June 2019 19:36
|
|
|
Re: Core 2019
By: mirek on Mon, 24 June 2019 20:15
|
|
|
Re: Core 2019
By: mirek on Sun, 23 June 2019 09:55
|
|
|
Re: Core 2019
By: mirek on Sun, 23 June 2019 10:19
|
|
|
Re: Core 2019
By: Novo on Mon, 24 June 2019 06:13
|
|
|
Re: Core 2019
By: mirek on Wed, 26 June 2019 08:52
|
|
|
Re: Core 2019
By: mirek on Thu, 27 June 2019 09:44
|
|
|
Re: Core 2019
By: mirek on Fri, 28 June 2019 09:09
|
|
|
Re: Core 2019
By: Tom1 on Fri, 28 June 2019 16:56
|
|
|
Re: Core 2019
By: mirek on Fri, 28 June 2019 17:30
|
|
|
Re: Core 2019
By: mirek on Fri, 28 June 2019 17:31
|
|
|
Re: Core 2019
By: mirek on Fri, 28 June 2019 17:40
|
|
|
Re: Core 2019
By: Tom1 on Fri, 28 June 2019 18:38
|
|
|
Re: Core 2019
By: Novo on Sun, 30 June 2019 19:02
|
|
|
Re: Core 2019
By: mirek on Sun, 30 June 2019 19:11
|
|
|
Re: Core 2019
By: Novo on Sun, 30 June 2019 20:12
|
|
|
Re: Core 2019
By: mirek on Mon, 01 July 2019 00:03
|
|
|
Re: Core 2019
By: Tom1 on Mon, 01 July 2019 09:14
|
|
|
Re: Core 2019
By: Novo on Thu, 11 July 2019 19:55
|
|
|
Re: Core 2019
By: mirek on Thu, 11 July 2019 20:14
|
|
|
Re: Core 2019
By: Novo on Thu, 11 July 2019 20:53
|
|
|
Re: Core 2019
By: mirek on Fri, 12 July 2019 10:09
|
|
|
Re: Core 2019
By: Novo on Fri, 12 July 2019 16:50
|
|
|
Re: Core 2019
By: Novo on Thu, 08 August 2019 21:47
|
|
|
Re: Core 2019
By: mirek on Thu, 08 August 2019 22:47
|
|
|
Re: Core 2019
By: mirek on Thu, 08 August 2019 22:53
|
|
|
Re: Core 2019
By: mirek on Thu, 08 August 2019 22:59
|
|
|
Re: Core 2019
By: Novo on Thu, 08 August 2019 23:30
|
|
|
Re: Core 2019
By: mirek on Fri, 09 August 2019 00:05
|
|
|
Re: Core 2019
By: Novo on Fri, 21 June 2019 17:59
|
|
|
Re: Core 2019
By: Novo on Fri, 21 June 2019 18:01
|
|
|
Re: Core 2019
By: Novo on Fri, 21 June 2019 18:10
|
Goto Forum:
Current Time: Fri Apr 26 03:26:41 CEST 2024
Total time taken to generate the page: 0.06838 seconds
|