-
Notifications
You must be signed in to change notification settings - Fork 384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLDR-17371 stream filter to replace xmlns with DOCTYPE #3511
CLDR-17371 stream filter to replace xmlns with DOCTYPE #3511
Conversation
kbd-check fails because of the xmlns, to be addressed on the keyman side in keymanapp/keyman#10803 |
tools/cldr-code/src/main/java/org/unicode/cldr/util/XMLFileReader.java
Outdated
Show resolved
Hide resolved
@macchiati I don't think this PR needs to block the spec, this PR is to show that the spec is supportable in Java. (once tests pass!) So, I'm OK to leave this PR open and make improvements if needed. API changes, optimization etc |
Makes sense |
I measured 11s±1s for 1,000 iterations. - about 11ms per iteration to load and validate common/main/mt.xml. No significant difference between using and not using the wrap() function. There is perhaps even a slight improvement (due to read-ahead or inefficiencies in the XML parser?) when using the wrap. The quick-check for |
I'm a bit confused. Are you saying that it takes 11s / 10000 iterations
with the wrap and approximately the same without?
…On Thu, Feb 22, 2024 at 9:50 AM Steven R. Loomis ***@***.***> wrote:
Measured 11s±1s for 10,000 iterations. Perhaps slight improvement (due to
read-ahead or inefficiencies in the XML parser?) when using the wrap. The
quick-check is now at the byte or char array level.
—
Reply to this email directly, view it on GitHub
<#3511 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACJLEMDPHMLXDJLG7374ZFDYU6AOJAVCNFSM6AAAAABDTXCLSOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJZHE3DCMRSGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
11s/1000, sorry. I'm re-running the tests. |
9ffb82d
to
a2e084a
Compare
Notice: the branch changed across the force-push!
~ Your Friendly Jira-GitHub PR Checker Bot |
Raw results. <testcase name="TestBytePerf(boolean)[1] wrapped=false" classname="org.unicode.cldr.util.TestDoctypeXmlStreamWrapper" time="74.146"/>
<testcase name="TestBytePerf(boolean)[2] wrapped=true" classname="org.unicode.cldr.util.TestDoctypeXmlStreamWrapper" time="74.809"/>
<testcase name="TestBytePerf(boolean)[3] wrapped=false" classname="org.unicode.cldr.util.TestDoctypeXmlStreamWrapper" time="76.95"/>
<testcase name="TestBytePerf(boolean)[4] wrapped=true" classname="org.unicode.cldr.util.TestDoctypeXmlStreamWrapper" time="75.434"/>
<testcase name="TestBytePerf(boolean)[5] wrapped=false" classname="org.unicode.cldr.util.TestDoctypeXmlStreamWrapper" time="77.519"/>
<testcase name="TestBytePerf(boolean)[6] wrapped=true" classname="org.unicode.cldr.util.TestDoctypeXmlStreamWrapper" time="74.999"/>
<testcase name="TestBytePerf(boolean)[7] wrapped=false" classname="org.unicode.cldr.util.TestDoctypeXmlStreamWrapper" time="77.698"/>
<testcase name="TestBytePerf(boolean)[8] wrapped=true" classname="org.unicode.cldr.util.TestDoctypeXmlStreamWrapper" time="77.906"/> |
Thanks. @macchiati ok to move ticket to accepted ? (Had sent mail to TC) |
Ok, you can. Assuming pk =ok
…On Fri, Feb 23, 2024, 18:02 Steven R. Loomis ***@***.***> wrote:
Thanks. @macchiati <https://github.com/macchiati> pk to move ticket to
accepted ? (Had sent mail to TC)
—
Reply to this email directly, view it on GitHub
<#3511 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACJLEMCM3CLDE46WKP3BU7LYVFC47AVCNFSM6AAAAABDTXCLSOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRSGIYTIMZVGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Failing build step is not CLDR tests, it's the Keyman compiler now out of date with these PRs. Once they merge I can fix it. |
98b6724
to
b633428
Compare
Hooray! The files in the branch are the same across the force-push. 😃 ~ Your Friendly Jira-GitHub PR Checker Bot |
Looks like the tests fail |
as @srl295 wrote previously:
He is working on a PR to the Keyman compiler to allow the |
CLDR's unit tests pass. |
I've disabled the keyboard check workflow for now. I'll re enable it once these merge and I can update the compiler to the changed spec. |
ping, can i get a review on this? All unit tests pass. |
CLDR-17371
ALLOW_MANY_COMMITS=true