Beefy Boxes and Bandwidth Generously Provided by pair Networks Ovid
No such thing as a small change
 
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 lurking in the Monastery: (7)
As of 2014-04-19 18:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (483 votes), past polls