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
Copy file name to clipboardExpand all lines: config/profile.go
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -280,7 +280,7 @@ fetching may be degraded.
280
280
},
281
281
},
282
282
"test-cid-v1": {
283
-
Description: `Makes UnixFS import produce legacy CIDv1 with the same suboptimal settings as legacy-cid-v0, but with 1MiB file chunk, CIDv1 and raw leaves. Use only if legacy behavior is required.`,
283
+
Description: `Makes UnixFS import produce CIDv1 with raw leaves, sha2-256 and 1 MiB chunks (max 174 links per file, 256 per HAMT node, switch dir to HAMT above 256KiB).`,
284
284
Transform: func(c*Config) error {
285
285
c.Import.CidVersion=*NewOptionalInteger(1)
286
286
c.Import.UnixFSRawLeaves=True
@@ -293,16 +293,16 @@ fetching may be degraded.
293
293
returnnil
294
294
},
295
295
},
296
-
"test-cid-v1-2025-v35": {
297
-
Description: `Makes UnixFS import produce modern CIDv1 with raw leaves, sha2-256 and 1 MiB chunks and wider file DAGs (1024 links per level).`,
296
+
"test-cid-v1-wide": {
297
+
Description: `Makes UnixFS import produce CIDv1 with raw leaves, sha2-256 and 1MiB chunks and wider file DAGs (max 1024 links per every node type, switch dir to HAMT above 1MiB).`,
Copy file name to clipboardExpand all lines: docs/changelogs/v0.35.md
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,13 +71,11 @@ You can set default values for these options using the following configuration s
71
71
72
72
The release updated configuration [profiles](https://github.com/ipfs/kubo/blob/master/docs/config.md#profile) to incorporate these new `Import.*` settings:
73
73
- Updated Profile: `test-cid-v1` now includes current defaults as explicit `Import.UnixFSFileMaxLinks=174`, `Import.UnixFSDirectoryMaxLinks=0`, `Import.UnixFSHAMTDirectoryMaxFanout=256` and `Import.UnixFSHAMTDirectorySizeThreshold=256KiB`
74
-
- New Profile: `test-cid-v1-2025-v35` adopts modern defaults, increasing the maximum file DAG width from 174 to 1024 and raising the HAMT directory sharding threshold from 256KiB to 1MiB, aligning with 1MiB file chunks.
75
-
- Benefits: Larger blocks (256KiB to 1MiB) enable up to 4x faster Amino DHT announcements and lookups.
76
-
- Status: This profile is a candidate for future default settings.
74
+
- New Profile: `test-cid-v1-wide` adopts experimental directory DAG-shaping defaults, increasing the maximum file DAG width from 174 to 1024, HAMT fanout from 256 to 1024, and raising the HAMT directory sharding threshold from 256KiB to 1MiB, aligning with 1MiB file chunks.
77
75
- Feedback: Try it out and share your thoughts at [discuss.ipfs.tech/t/should-we-profile-cids](https://discuss.ipfs.tech/t/should-we-profile-cids/18507) or [ipfs/specs#499](https://github.com/ipfs/specs/pull/499).
78
76
79
77
> [!TIP]
80
-
> Apply the modern CIDv1 test profile with `ipfs config profile apply test-cid-v1-2025-v35`.
78
+
> Apply the modern CIDv1 test profile with `ipfs config profile apply test-cid-v1-wide`.
Copy file name to clipboardExpand all lines: docs/config.md
+25-3Lines changed: 25 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2800,16 +2800,38 @@ Disables [Reprovider](#reprovider) system (and announcing to Amino DHT).
2800
2800
2801
2801
Makes UnixFS import (`ipfs add`) produce legacy CIDv0 with no raw leaves, sha2-256 and 256 KiB chunks.
2802
2802
2803
+
See <https://github.com/ipfs/kubo/blob/master/config/profile.go> for exact [`Import.*`](#import) settings.
2804
+
2803
2805
> [!NOTE]
2804
2806
> This profile is provided for legacy users and should not be used for new projects.
2805
2807
2806
2808
### `test-cid-v1` profile
2807
2809
2808
-
Makes UnixFS import (`ipfs add`) produce modern CIDv1 with raw leaves, sha2-256 and 1 MiB chunks.
2810
+
Makes UnixFS import (`ipfs add`) produce modern CIDv1 with raw leaves, sha2-256
2811
+
and 1 MiB chunks (max 174 links per file, 256 per HAMT node, switch dir to HAMT
2812
+
above 256KiB).
2813
+
2814
+
See <https://github.com/ipfs/kubo/blob/master/config/profile.go> for exact [`Import.*`](#import) settings.
2809
2815
2810
2816
> [!NOTE]
2811
-
> This profile will become the new implicit default, provided for testing purposes.
2812
-
> Follow [kubo#4143](https://github.com/ipfs/kubo/issues/4143) for more details.
2817
+
> [`Import.*`](#import) settings applied by this profile MAY change in future release. Provided for testing purposes.
2818
+
>
2819
+
> Follow [kubo#4143](https://github.com/ipfs/kubo/issues/4143) for more details,
2820
+
> and provide feedback in [discuss.ipfs.tech/t/should-we-profile-cids](https://discuss.ipfs.tech/t/should-we-profile-cids/18507) or [ipfs/specs#499](https://github.com/ipfs/specs/pull/499).
2821
+
2822
+
### `test-cid-v1-wide` profile
2823
+
2824
+
Makes UnixFS import (`ipfs add`) produce modern CIDv1 with raw leaves, sha2-256
2825
+
and 1 MiB chunks and wider file DAGs (max 1024 links per every node type,
2826
+
switch dir to HAMT above 1MiB).
2827
+
2828
+
See <https://github.com/ipfs/kubo/blob/master/config/profile.go> for exact [`Import.*`](#import) settings.
2829
+
2830
+
> [!NOTE]
2831
+
> [`Import.*`](#import) settings applied by this profile MAY change in future release. Provided for testing purposes.
2832
+
>
2833
+
> Follow [kubo#4143](https://github.com/ipfs/kubo/issues/4143) for more details,
2834
+
> and provide feedback in [discuss.ipfs.tech/t/should-we-profile-cids](https://discuss.ipfs.tech/t/should-we-profile-cids/18507) or [ipfs/specs#499](https://github.com/ipfs/specs/pull/499).
0 commit comments