Skip to content

The code finds all DICOM files at the specified path. The code is implemented for educational purposes, to get acquainted with rust and PyO3.

Notifications You must be signed in to change notification settings

MAE664128/using_Rust_in_Python_on_the_example_of_reading_dicom_files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Finding DICOM files from Python code using Rust binary

Description

Educational code

Use python 3.11

The code find and read all DICOM files at the specified path.

The code is implemented for educational purposes, to get acquainted with rust and pyO3

Example: find and read all DICOM files

(AMD Ryzen 5 6500X 6-Core Processor; Samsung SSD 970 EVO Plus 500TB)

Всего файлов в папке: 1972
──────────────────────────────────────────
| Python single process     | 8.45892s   |
| Rust called from python   | 1.13431s   |
| Python multiprocess.      | 2.13549s   |
──────────────────────────────────────────

(AMD Ryzen 5 6500X 6-Core Processor; Samsung SSD 970 EVO Plus 500TB)

Всего файлов в папке: 66648
──────────────────────────────────────────
| Python single process     | 298.16290s |
| Rust called from python   |  41.99200s |
| Python multiprocess.      |  54.89347s |
──────────────────────────────────────────

About

The code finds all DICOM files at the specified path. The code is implemented for educational purposes, to get acquainted with rust and PyO3.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages