Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
mmap_string_set_tmpdir
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
crashwrite  
View profile  
 More options Sep 14 2011, 2:38 pm
From: crashwrite <r...@goodhumans.com>
Date: Wed, 14 Sep 2011 11:38:18 -0700 (PDT)
Local: Wed, Sep 14 2011 2:38 pm
Subject: mmap_string_set_tmpdir
Hi All,

Its been a long time since I looked at the remail source code, so I
don't know whether this is still (or was ever) an issue in the stock
remail source.  I discovered it a while back, when my app was using
excessive memory for large emails. This, in turn, sometimes led to
crashing.

At any rate, libEtPan uses mmap_string and files to deal with large
strings. It stores the files in a temporary directory.

Unfortunately, that directory is outside the sandbox that apps can
write to. For things to work properly, you need to initialize the
temporary directory to a place that apps can write to. I do this in
the AppDelegate:

mmap_string_set_tmpdir( [NSTemporaryDirectory() UTF8String] ) ;

This next line is less important, but it tells mmap_string to use
files for strings over 2MiB. I don't recall what the default is.

mmap_string_set_ceil(1024*1024*2);

-Rich


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »