Commit c10834d
perf: accelerate data loading in training (deepmodeling#5023)
Accelerate data loading in training phase.
Up to 40x acceleration for small descriptors with lower CPU usage.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Single-frame loading API and improved mixed-type atomic system
support.
* Platform-aware cache size exposed for tuning.
* **Performance Improvements**
* Memory-mapped data access with cached file handles.
* Concurrent loading of frame data for better multi-core utilization.
* **Bug Fixes**
* Standardized frame keys and reshaping for consistent downstream
behavior.
* **Tests**
* Updated tests to include polarizability in batch key handling.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent 0496fbf commit c10834d
3 files changed
Lines changed: 320 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
50 | 66 | | |
51 | 67 | | |
52 | 68 | | |
| |||
0 commit comments