ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-list
python-list
Re: mmap example?
by Jason M Jurkowski ;002;icsg6; other posts by this author
Mar 19 2003 2:18PM messages near this date
Re: OT: Recommended Linux Laptops, suppliers? | Python & Mozilla
On Tue, 18 Mar 2003, VanL wrote:

>  I am trying to work with mmap, but the documentation is a bit terse.
>   Does anyone have an example of using mmap?   Any pitfalls regarding its
>  use?
> 
>  Particularly, is there any reason to use .move() as oppsed to slice
>  assignment?  Are they basically the same, under the covers, or is the a
>  penalty associated with one or the other?
it appears that slice assignment creates a copy of the data and then
performs a memcpy() on that data.  move() is implemented as a
thin-wrapper of memmove().
use move() to avoid the temporary object creation and extra copy involved
with slice assignment.
> 
>  Thanks,
> 
>  VanL
> 
> 
> 
> 
> 
> 
-- 
http://mail.python.org/mailman/listinfo/python-list

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved