On Monday, 15 January 2018 at 19:52:07 UTC, H. S. Teoh wrote:
On Sat, Jan 13, 2018 at 09:26:52AM -0800, H. S. Teoh via Digitalmars-d wrote: [...]
        https://github.com/quickfur/strwidth
[...]

One thing I'm seeking help with, and this is mainly directed at Dmitry Olshansky but can be anyone here who knows the internal workings of std.uni well enough, is how to transform the Trie generated by the static ctor into compile-time TrieNode declarations. This is one blocker for my turning this code into a Phobos PR, because I don't want to incur the cost of initializing this trie at runtime.


Checkout my horribly named repo gsoc-uni-benchmark:

https://github.com/DmitryOlshansky/gsoc-bench-2012/blob/master/gen_uni.d

This is what generates unicode tables.
Need to revise it, as folks were delicate enough to hand-patch auto-generated code in Phobos.

Maybe make some of that user-acessible.


T

Reply via email to