Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^5: RFC: Abusing "virtual" memory (page faults vs malloc)

by BrowserUk (Pope)
on Nov 28, 2007 at 10:01 UTC ( #653503=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #! perl -slw
    use strict;
    ...
    U32 heapFree( U32 hHeap, U32 flags, U32 mem ) {
        return (U32)HeapFree( (HANDLE)hHeap, flags, (LPVOID)mem );
    }
    
  2. or download this
    c:\test>HeapMem.pl
    pagefaults before alloc of 40960 bytes: 952
    ...
    pagefaults before alloc of 40960 bytes: 965
    pagefaults after alloc of 40960 bytes: 965
    40960
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://653503]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2015-07-06 02:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (69 votes), past polls