On 7/20/06, J. Merrill <[EMAIL PROTECTED]> wrote:
> At 01:05 AM 7/20/2006, JoeSox wrote (in part)
> >File.WriteAllText(Application.StartupPath + "\\mydict.txt",
> >myDict.ToCodeString());
> >(This results in a file size of 1,540,096 bytes which was created in about a
> >second.)
>
> I don't know
-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of J. Merrill
Sent: Thursday, July 20, 2006 12:58 PM
To: Discussion of IronPython
Subject: Re: [IronPython] Dict convertion question
You should really try executing the ToCodeString result
At 12:49 PM 7/20/2006, JoeSox wrote
&
You should really try executing the ToCodeString result
At 12:49 PM 7/20/2006, JoeSox wrote
>On 7/20/06, Bruce Christensen <[EMAIL PROTECTED]> wrote:
>> What is the nature of the dict that you're trying to save?
>
>It's a
>{4: [6, 4278, 44657, 30279, 58912, 67939, 18551, 33653, 28303, 6692,
PROTECTED] On Behalf Of J. Merrill
Sent: Thursday, July 20, 2006 12:04 PM
To: Discussion of IronPython
Subject: Re: [IronPython] Dict convertion question
At 01:05 AM 7/20/2006, JoeSox wrote (in part)
>File.WriteAllText(Application.StartupPath + "\\mydict.txt",
myDict.ToCodeStri
ly 20, 2006 12:04 PM
To: Discussion of IronPython
Subject: Re: [IronPython] Dict convertion question
At 01:05 AM 7/20/2006, JoeSox wrote (in part)
>File.WriteAllText(Application.StartupPath + "\\mydict.txt",
>myDict.ToCodeString()); (This results in a file size of 1,540,096 bytes
At 01:05 AM 7/20/2006, JoeSox wrote (in part)
>File.WriteAllText(Application.StartupPath + "\\mydict.txt",
>myDict.ToCodeString());
>(This results in a file size of 1,540,096 bytes which was created in about a
>second.)
I don't know much about ToCodeString, but from the name, it should produce a
On 7/20/06, Bruce Christensen <[EMAIL PROTECTED]> wrote:
> What is the nature of the dict that you're trying to save?
It's a
{4: [6, 4278, 44657, 30279, 58912, 67939, 18551, 33653, 28303, 6692,
4827, 110144, 18920, 15569, 11571, 77917, 7968, 10137, 14154, 33180,
12544, 54062, 159370, 9495], 11: [
ge-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of JoeSox
Sent: Wednesday, July 19, 2006 10:06 PM
To: Discussion of IronPython
Subject: Re: [IronPython] Dict convertion question
Perfect Bruce thanks for the suggestion. Thanks exactly what I was
looking for. However, it took around s
Perfect Bruce thanks for the suggestion. Thanks exactly what I was
looking for. However, it took around six minutes to create a file
using pickle, as opposed to one second when I used File.WriteAllText.
I understand pickle may be compressing but the space savings is not a
significant enough benefi
ew_dict
[(0, 0), (1, 1), (2, 2), (3, 3), (4, 4), ...
Since we just added support for this, please let us know if you run into
any problems.
--Bruce
-----Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of JoeSox
Sent: Wednesday, July 19, 2006 10:47 AM
To: Discussion
I'm interested in storing a large Dict in a text file. What I am
trying to figure out what be the best way on creating the Dict from
the text file.
I see Converter.ConvertToValueType but I don't understand how to
construct the RuntimeTypeHandle to see if that would work.
But I am thinking I need
11 matches
Mail list logo