Skip to content
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

use rapidjson to write ann files in coco streaming export #94

Merged
merged 4 commits into from
Mar 11, 2025

Conversation

Eldies
Copy link

@Eldies Eldies commented Mar 6, 2025

Summary

  • Switched to rapidjson in COCO streaming exporter for better performance
  • Removed unused json-stream dependency

Measurements and comparisons, ~1.8x speedup with the same memory use.

How to test

Checklist

  • I have added unit tests to cover my changes.​
  • I have added integration tests to cover my changes.​
  • I have added the description of my changes into CHANGELOG.​
  • I have updated the documentation accordingly

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.
  • I have updated the license header for each file (see an example below).
# Copyright (C) 2025 CVAT.ai Corporation
#
# SPDX-License-Identifier: MIT

@zhiltsov-max zhiltsov-max mentioned this pull request Mar 6, 2025
6 tasks
@Eldies Eldies changed the title use orjson to write ann files use rapidjson to write ann files Mar 10, 2025
@Eldies Eldies changed the title use rapidjson to write ann files use rapidjson to write ann files in coco streaming export Mar 11, 2025
@zhiltsov-max zhiltsov-max merged commit f9cdbfb into develop Mar 11, 2025
6 checks passed
@zhiltsov-max zhiltsov-max deleted the dl/faster-json-export-for-streaming-coco branch March 11, 2025 13:23
@Eldies Eldies mentioned this pull request Mar 11, 2025
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants