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
feat: remove close, sources should auto close themselves (#1663)
### Motiviation
the file closing logic has been a annoyance for consumers needing to
remember to close tiffs is hard, the file handle is often kept open for
very long times and not read frequently and the closing logic has now
leaked into the middleware
### Modifcation
- SourceFile now `open -> read -> close` per fetch, this behaviour is
reasonably similar in terms of raw performance unless there are 1000s of
reads
- .close() has been removed from all interfaces.
### Verification
Unit tests.
ref: blacha/cogeotiff#1446
0 commit comments