-
Notifications
You must be signed in to change notification settings - Fork 2
unic_datetime #13
Comments
HI @zbraniecki , thanks for sharing. I suppose it's https://github.com/zbraniecki/unic-datetime? |
Yes! Sorry for not linking. In my measurements repo I provided steps to reproduce - https://github.com/zbraniecki/intl-measurements/#how-to-run It uses a test crate which fetches Please, note that the source code is a mess. I've been migrating between different layout models for data and I plan to clean it all up. For JSON/binary master works and Sorry for the mess, I'm in a heavy experimentation phase, but wanted to share initial results :) |
Got this. Seems easy to fix, just unsure if you meant it to not be there. No worries about sharing the early stage of your repo, it's expected. We'll soldier through it.
|
Hmm, tested again:
Can you pull and retest pls? |
Also, that seems to work:
|
@zbraniecki trying out the following:
I got to this at cd08dff908bef647423b73e7c673a592f514d5cf
|
This is getting to be a bit in the weeds, how about we continue at: https://github.com/zbraniecki/unic-datetime/issues? |
Ah! I didn't vendor in If you want to test in the crate, and not in the
|
The intl-measurements setup is more self-contained. |
For the record, initial results from @filmil :
|
Closing this issue in favor of unicode-org/icu4x#163 |
I started experimenting with DateTime formatter. The codebase is very messy, I apologize for that, but I believe I can share the initial performance results.
For the minimum POC I focused on a single locale (
pl
) and 10 different combinations of dateStyle/timeStyle. I omitted two which require timezone names.Since DateTime patterns take much more space than pluralrules or locale RTL/likelySubtags data which I worked with before, I experimented with three different models of loading data, as per #5:
For the binary scenario I used
bincode
crate, fetched JSON CLDR, parsed the patterns, and serialized the resulting structure to ares
file, which I then loaded into memory at runtime.I got the following results:
I'd appreciate if someone could try to replicate my measurements and verify the results.
If the results hold, I believe this to be one more evidence that investment in Rust based crates may lead to significant performance gains.
I haven't evaluate memory use, but the
ca-gregory.json
file forpl
is18201 bytes
andpl.res
generated from it is2187 bytes
. I'd expect the latter to take the same amount in memory.The text was updated successfully, but these errors were encountered: