Commit 78b48cd
birchkwok
Refactor mmap cache handling for Windows compatibility in NumPack
- Updated the mmap cache management to implement platform-specific logic for Windows, ensuring that mmap caching does not interfere with file modifications.
- Enhanced comments to clarify the necessity of clearing mmap caches before file operations on Windows, while noting that Unix platforms do not require this step.
- Improved the organization of mmap cache cleanup functions to better reflect their platform-specific usage.1 parent 44c4c58 commit 78b48cd
2 files changed
Lines changed: 36 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
45 | 48 | | |
| 49 | + | |
46 | 50 | | |
47 | 51 | | |
48 | 52 | | |
| |||
3188 | 3192 | | |
3189 | 3193 | | |
3190 | 3194 | | |
3191 | | - | |
| 3195 | + | |
3192 | 3196 | | |
3193 | 3197 | | |
3194 | 3198 | | |
3195 | 3199 | | |
3196 | 3200 | | |
3197 | 3201 | | |
3198 | 3202 | | |
3199 | | - | |
| 3203 | + | |
| 3204 | + | |
| 3205 | + | |
| 3206 | + | |
| 3207 | + | |
| 3208 | + | |
| 3209 | + | |
| 3210 | + | |
| 3211 | + | |
| 3212 | + | |
| 3213 | + | |
3200 | 3214 | | |
3201 | 3215 | | |
3202 | 3216 | | |
| |||
3207 | 3221 | | |
3208 | 3222 | | |
3209 | 3223 | | |
| 3224 | + | |
| 3225 | + | |
| 3226 | + | |
| 3227 | + | |
| 3228 | + | |
| 3229 | + | |
3210 | 3230 | | |
3211 | 3231 | | |
3212 | 3232 | | |
| |||
3734 | 3754 | | |
3735 | 3755 | | |
3736 | 3756 | | |
3737 | | - | |
| 3757 | + | |
| 3758 | + | |
| 3759 | + | |
3738 | 3760 | | |
| 3761 | + | |
3739 | 3762 | | |
3740 | 3763 | | |
3741 | 3764 | | |
| |||
3749 | 3772 | | |
3750 | 3773 | | |
3751 | 3774 | | |
3752 | | - | |
| 3775 | + | |
| 3776 | + | |
| 3777 | + | |
3753 | 3778 | | |
3754 | 3779 | | |
3755 | 3780 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
34 | | - | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| |||
74 | 78 | | |
75 | 79 | | |
76 | 80 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | 81 | | |
89 | 82 | | |
90 | 83 | | |
| |||
0 commit comments