File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ module documentation.
3131.. _user-guide-array :
3232
3333Initializing with Data
34- ---------------------
34+ ----------------------
3535Pass existing data during array creation for better performance:
3636
3737.. code-block :: python
@@ -42,16 +42,16 @@ Pass existing data during array creation for better performance:
4242 data = np.random.rand(1000 , 1000 )
4343 arr = zarr.create_array(" data.zarr" , shape = data.shape, data = data)
4444
45- This avoids a separate write step and is more efficient than :
45+ This provides a more concise syntax compared to separate assignment :
4646
4747.. code-block :: python
4848
49- # Less efficient approach
49+ # Equivalent but verbose
5050 arr = zarr.create_array(" data.zarr" , shape = (1000 , 1000 ))
5151 arr[:] = data
5252
5353 .. note ::
54- For cloud stores like S3, use `` data= `` with async writes for best performance .
54+ Both methods leverage async writes when using async-compatible stores like S3 .
5555
5656Reading and writing data
5757------------------------
You can’t perform that action at this time.
0 commit comments