Skip to content

Commit 0e8ae60

Browse files
sebgodclaude
andcommitted
Bump version to 4.1.0
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 786116c commit 0e8ae60

2 files changed

Lines changed: 22 additions & 3 deletions

File tree

CSharpFITS/CSharpFITS.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
<LangVersion>9.0</LangVersion>
1212
<PackageReadmeFile>README.md</PackageReadmeFile>
1313
<PackageLicenseFile>license.txt</PackageLicenseFile>
14-
<AssemblyVersion>4.0.0.0</AssemblyVersion>
15-
<FileVersion>4.0.0.0</FileVersion>
14+
<AssemblyVersion>4.1.0.0</AssemblyVersion>
15+
<FileVersion>4.1.0.0</FileVersion>
1616
<PackageTags>Astronomy,FITS,Image</PackageTags>
1717
<RepositoryUrl>https://github.com/SharpAstro/FITS.Lib</RepositoryUrl>
1818
<PackageProjectUrl>https://github.com/SharpAstro/FITS.Lib</PackageProjectUrl>
1919
<Description>Supports reading and writing FITS files</Description>
20-
<Version>4.0.0</Version>
20+
<Version>4.1.0</Version>
2121
<Authors>Virtual Observatory - India</Authors>
2222
<PackageId>FITS.Lib</PackageId>
2323
<RootNamespace>nom.tam</RootNamespace>

IMPROVEMENTS.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,25 @@
22

33
Changes since forking from [rwg0/csharpfits](https://github.com/rwg0/csharpfits).
44

5+
## v4.1.0
6+
7+
### SIMD write path and buffered stream bypass
8+
9+
- **Write methods** (short/int/long/float/double) now use SIMD-vectorized
10+
`BinaryPrimitives.ReverseEndianness` on .NET 10+ instead of scalar byte shuffling.
11+
This benefits all write paths including BinaryTable data.
12+
- **WriteRectangularArray** uses chunked zero-copy writes from the array's contiguous
13+
memory (~4MB chunks), eliminating the full-size flat temp buffer allocation.
14+
- **ReadRectangularArray** bypasses `BufferedStream` for large reads (>128KB), reading
15+
directly from the underlying `FileStream`.
16+
17+
**Performance** (299MB float 6248x4176x3 image, .NET 10):
18+
19+
| Operation | v4.0.0 | v4.1.0 |
20+
|-----------|--------|--------|
21+
| Read | ~197ms | **~142ms** (-28%) |
22+
| Write | ~3,219ms | **~113ms** (-96%) |
23+
524
## v4.0.0 (breaking)
625

726
### Rectangular arrays for image data

0 commit comments

Comments
 (0)