realbasic-nug
[Top] [All Lists]

Re: High Performance Code (Was: Bitwise Shift operators)

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: High Performance Code (Was: Bitwise Shift operators)
From: Charles Yeomans <charles at declareSub dot com>
Date: Sat, 29 Sep 2007 15:24:47 -0400
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <BAY107-DAV2744FC1F92F91EEB3D2A593B30 at phx dot gbl>
On Sep 29, 2007, at 2:37 PM, Daniel Stenning wrote:

> Talking of which, one bit of tedium I find myself having to do a  
> lot of
> these days is assigning a memoryblock reference to a Ptr variable,  
> in order
> that I can do high performance processing on memoryblocks. It makes  
> a hell
> of a difference to use the Ptr dereferencing syntax instead of the
> memoryblock methods.  I really wish there were a built in property  
> that just
> always gave us the pointer to the memoryblock.  I have wrapper  
> "buffer"
> class that does just this, but I still wish it were automatically  
> built in.


For high-performance code, i would think that you'd want to cache the  
address in a local variable.

Charles Yeomans
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>