Re: [Mono-dev] Replacing/Removing I18N

2006-10-13 Thread Kornél Pál
>You misunderstood: embedding the data as a resource in the assemblies is >not a better solution. The best way is to add an icall: OK, thanks for the clarification. I really didn't understand you.:) I believe you that this is faster.:) Kornél ___ Mon

Re: [Mono-dev] Replacing/Removing I18N

2006-10-13 Thread Paolo Molaro
On 10/13/06 Kornél Pál wrote: > >I maintain that having the option to store it either embedded in the > >binary or in data files is better than the proposal to use assembly > >resources or your proposal of having only external files (which makes > >it harder to support mkbundle). > > I just was th

Re: [Mono-dev] Replacing/Removing I18N

2006-10-13 Thread Kornél Pál
>The only difference in your proposal is how to store the data. >I maintain that having the option to store it either embedded in the >binary or in data files is better than the proposal to use assembly >resources or your proposal of having only external files (which makes >it harder to support mkb

Re: [Mono-dev] Replacing/Removing I18N

2006-10-13 Thread Paolo Molaro
On 10/12/06 Kornél Pál wrote: > Currently I have little time for Mono but I have some ideas about getting > rid of I18N assemblies: [...] > What about these ideas? The only difference in your proposal is how to store the data. I maintain that having the option to store it either embedded in the b

Re: [Mono-dev] Replacing/Removing I18N

2006-10-12 Thread Kornél Pál
> You failed to read my mail where I explain that my icall solution allows > adding/removing support for encodings by simply adding/removing data > files in $prefix/lib/mono/encodings/. The option to include the data > inside the binary must be always there to support mkbundle or some > embedded >

Re: [Mono-dev] Replacing/Removing I18N

2006-10-12 Thread Paolo Molaro
On 10/11/06 Andreas Nahr wrote: > Well this was my first thought also to do it this way. However > internal-calls reduce the maintainability of the code, because you have to > manually ensure it stays in synch and it makes using corelib much harder for > other projects. So I tried to search for

Re: [Mono-dev] Replacing/Removing I18N

2006-10-11 Thread Atsushi Eno
Andreas Nahr wrote: > public byte GetByte (char char) > { > return table[char]; > } > Also this would obviously be (much) faster than the current solution (I > don't know how Atsushi got to the point that this would be slower than > current code). How small is the table abov

Re: [Mono-dev] Replacing/Removing I18N

2006-10-11 Thread Andreas Nahr
> On 10/09/06 Andreas Nahr wrote: >> Current situation: >> I18N is located in multiple separate assemblies that contain encoding >> classes that are autogenerated. The single-byte encodings (my current >> focus) use a potentially big CASE-Structure to compute the output. >> >> Problems: > [...] >>

Re: [Mono-dev] Replacing/Removing I18N

2006-10-11 Thread Paolo Molaro
On 10/09/06 Andreas Nahr wrote: > Current situation: > I18N is located in multiple separate assemblies that contain encoding > classes that are autogenerated. The single-byte encodings (my current > focus) use a potentially big CASE-Structure to compute the output. > > Problems: [...] > Consider

Re: [Mono-dev] Replacing/Removing I18N

2006-10-11 Thread Atsushi Eno
Hi, Your details would bring good clarification :-) To my understanding mono assemblies (and hence(?) their embedded resources) are mmaped when they are loaded. That's what Andreas also knows, and that's why he is afraid the case if such external resources that I put on the table are not mmaped

Re: [Mono-dev] Replacing/Removing I18N

2006-10-11 Thread Brian Crowell
Atsushi Eno wrote: > I quite don't understand why you speak about the _existence_ > of mmaped external resource loader. Forgive me for jumping in, but I think he's talking about it because it could be a big help without actually wasting a lot of memory/process time. Now, *is* there a memory-map

Re: [Mono-dev] Replacing/Removing I18N

2006-10-11 Thread Atsushi Eno
Andreas Nahr wrote: > And I wrote quite extensively in the original post why this is something > that we definatelly wouldn't want to have. s:/we/I/; > Why would embedding them into corelib be a waste of resources? As far as I > found out this approach should use the minimum amount of resources

Re: [Mono-dev] Replacing/Removing I18N

2006-10-11 Thread Andreas Nahr
Additionally: If the 10MB are too large there could be the option to split the tables into a lower and upper table (the middle range is unused by single-byte encodings) reducing the table size to about 12-16kb. I don't think its worth it though because in 99% of the cases this just means tradin

Re: [Mono-dev] Replacing/Removing I18N

2006-10-10 Thread Andreas Nahr
> To not let our thoughts go wrong way: the reason why existing > I18N.*.dll consist of a bunch of IL code and very few static data > is just because those conversion tables are just made into a bunch > of switch-cases. And I wrote quite extensively in the original post why this is something that

Re: [Mono-dev] Replacing/Removing I18N

2006-10-10 Thread Atsushi Eno
To not let our thoughts go wrong way: the reason why existing I18N.*.dll consist of a bunch of IL code and very few static data is just because those conversion tables are just made into a bunch of switch-cases. The encoding conversion tables definitely do not have to reside in mscorlib.dll. It is

Re: [Mono-dev] Replacing/Removing I18N

2006-10-10 Thread Andreas Nahr
Hi, Hello, * Creating the binary data should be simple when generating from a .Net VM. Would it be allowed to gernerate directly from MS.Net? From Portable.Net? (obviously from Mono is no problem, but would not allow to ADD data) I did not understand this question at all. Well the questio

Re: [Mono-dev] Replacing/Removing I18N

2006-10-09 Thread Miguel de Icaza
Hello, > * Creating the binary data should be simple when generating from a .Net VM. > Would it be allowed to gernerate directly from MS.Net? From Portable.Net? > (obviously from Mono is no problem, but would not allow to ADD data) I did not understand this question at all. > * Size of a memma

[Mono-dev] Replacing/Removing I18N

2006-10-09 Thread Andreas Nahr
Hi *, I've been looking into this topic for quite some time now. However my knowledge (especially of the internals of the VM) is potentially not enough, so please correct me if I make wrong statements or assumptions: Current situation: I18N is located in multiple separate assemblies that cont