You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Stream RVT downgrade partitions through the writer - #365
Compute the gzip trailer while compressing, preserving the RVT header and compression level.
Use the writer's first partition scan for report counts. The --check command still counts independently. The CLI tests cover matching counts and the diagnostic for damaged framing.
The gzip change passed 118 focused tests per target on .NET 10 and .NET 8 x86. The shared scan passed 87 per target. Each run skipped 28 tests.
The first large Chromium run of the shared scan saved the RVT in 232.2 s. The file and full downgrade report matched the reference, and OPFS was cleared. The synthetic downgrade also matched. The alternating browser comparison and opening the result in Revit remain pending.
Alternating native runs saved matching RVTs and reports in 81.9 and 97.0 s with the shared scan and 86.2 and 100.6 s with the control.
Changes
Read the element census and source partitions as streams. Write converted pages directly to the temporary RVT and validate the saved container before publishing it.
Reuse the CLI downgrade plan and the final per-block owner counts when the omission analysis converges.
On commit f771744, 252 focused tests passed on each of .NET 10 and .NET 8 x86. Another 46 tests on each target were skipped because their private fixtures were unavailable. The report-write failure and retry test passed.
A native run of f771744 completed in 146.4 s. The RVT and omission list matched the previous streaming build. Each run overlapped other work on the test machine.
The first streaming build completed a local native downgrade and passed an independent scan of the output. Chromium completed a synthetic lossless downgrade, matched the previous output byte for byte, and cleared its OPFS workspace.
The initial large Chromium streaming test passed the previous out-of-memory point and reached page writing. The full result from the later shared-scan build is recorded above.
Писатель переносит индекс хранилища из исходной модели в схему целевой версии и сохраняет метаданные совместной работы. Один буфер цепочки переиспользуется при анализе, записи и проверке. Согласие на пропуски и сохранение отчёта перед выпуском RVT обязательны при известных пропусках.
На .NET 10 и .NET 8 x86 прошли по 352 целевых теста. На каждой платформе пропущено по 48 тестов, требующих файловых фикстур. Chromium с веб-изменениями из IOExtend/.github #13 выдал побайтно совпадающий RVT и такой же список пропусков. Выход для отдельной малой модели открыт в Revit 2024. Полное открытие большой модели после даунгрейда ещё не подтверждено.
Классы пропущенных элементов собираются при первом чтении разделов. Убрано повторное чтение для отчёта. Планировщик и писатель переиспользуют буфер цепочки. Выходной поток по-прежнему проверяется до выпуска файла.
На RVT около 2 ГиБ при переходе 2026 → 2024 Chromium сохранил файл за 177,2 с против 186,4 с у контроля в парном прогоне. Суммарное чтение до первой записи уменьшилось примерно с 10 до 8 ГиБ с учётом повторных чтений. Обе браузерные копии и нативный результат совпали побайтно, браузерные отчёты совпали, OPFS очистилось. Нативный кандидат занял 75,0 с во время фоновой сборки. Прогон выполнен с явным разрешением на пропуски. Открытие большой копии в Revit пока не проверено.
При повторной проверке прошли по 302 целевых теста на .NET 10 и .NET 8 x86, по 45 пропущено. Замеры сайта собраны в IOExtend/.github #13.
В R22Transcoder списки правок создаются только для объектов с правками. Сортировка и перестановка полей переиспользуют диапазоны списков. Контроль 60458f5e включает нативный даунгрейд из #362 и сохранение отчёта перед выдачей RVT из #364.
На RVT размером 2 146 996 224 байта при переходе 2026 → 2024 четыре прогона по 2 594 001 записи дали одинаковые полезные данные, диагностику и список из 2 477 пропущенных владельцев. Медиана выделений при перекодировании снизилась с 19,10 до 18,01 ГБ (−5,68%).
Нативный RVT и отчёт совпали с проверенным эталоном. SHA-256 RVT f4d3c2736d78b9a3233c4c4ecd4034be97ceb676c510b8da253a7df63b15dd27. Этот эталон открывался в Revit 2024.1.
На .NET 8 x64 и .NET 10 прошли по 204 целевых теста, по 26 пропущено. На .NET 8 x86 один тест чтения RVT 2025 исчерпал память и на контроле, и на кандидате.
Малая браузерная модель 2026 → 2025 совпала с эталоном, очистка OPFS подтверждена. В парном прогоне Chromium на большой модели файл стал доступен за 182,0 с у контроля и за 171,4 с у кандидата. Пиковый наблюдаемый размер памяти WASM составил 3,71 и 4,11 ГБ. Оба RVT и отчёты совпали, OPFS очищена. Хэши больших RVT получены из потоков файлов, созданных страницей, после отмены обычного скачивания Chromium в первом контрольном запуске. Для оценки воспроизводимости времени и размера памяти нужна серия прогонов.
Первый проход браузерного даунгрейда запоминает успешно проверенные записи и их ссылки. При уточнении списка пропущенных элементов ядро повторно переводит запись, если её зависимости затронуты или если результат проверки отсутствует. Изменены R22Transcoder, DowngradePartitionRewriter и DowngradeWriter. Добавлен тест в R22TranscoderTests.
В четырёх прогонах Chromium на RVT около 2 ГиБ (2026 → 2024) медиана времени до готовности файла снизилась с 184,3 до 176,2 с (−4,4%), а время до начала записи — с 83,8 до 69,5 с. В этом сценарии пропуски явно разрешены. Все четыре RVT совпали побайтно с эталоном, ранее открытым в Revit 2024.1. Отчёты совпали за исключением имени выходного файла. Очистка OPFS подтверждена.
На .NET 8 x64 и .NET 10 прошли по 204 целевых теста, по 26 пропущено.
В отдельном диагностическом прогоне чтения, записи и сбросы OPFS для выходного файла заняли суммарно 0,57 с. Эксперимент с gzip level 4 дал нестабильное время сохранения, а при открытии его RVT в Revit произошла ошибка при отрисовке. Ветка остаётся на проверенном варианте с исходными параметрами сжатия.
Паритет с нативным временем ещё не достигнут. Следующий эксперимент с повторной распаковкой исходных разделов находится локально, его результаты ещё не проверены.
This branch has not been deployed
No deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Shared partition scan checkpoint
--checkcommand still counts independently. The CLI tests cover matching counts and the diagnostic for damaged framing.Changes
Verification
On commit f771744, 252 focused tests passed on each of .NET 10 and .NET 8 x86. Another 46 tests on each target were skipped because their private fixtures were unavailable. The report-write failure and retry test passed.
A native run of f771744 completed in 146.4 s. The RVT and omission list matched the previous streaming build. Each run overlapped other work on the test machine.
The first streaming build completed a local native downgrade and passed an independent scan of the output. Chromium completed a synthetic lossless downgrade, matched the previous output byte for byte, and cleared its OPFS workspace.
The initial large Chromium streaming test passed the previous out-of-memory point and reached page writing. The full result from the later shared-scan build is recorded above.
Follows up on #362. Browser integration is tracked in IOExtend/.github#13.