MSP-8974 up deps

This commit is contained in:
chashintv committed 2026-11-20 10:42:39 +03:00
1 parent 0abaaf740f
commit a0aafd93b9
602 files changed
+47724 -13295

No files matched your search

+13 -5
View File
@@ -109,7 +109,7 @@ func (e *Encoder) Reset(w io.Writer) {
js.jobSize = e.o.jobSize()
js.overlapSize = e.o.overlapSize()
// js.filling is allocated lazily on first Write/ReadFrom so callers
// that only use EncodeAll don't pay the (up to ~32 MB) jobSize cost.
// that only use EncodeAll don't pay the jobSize cost (up to maxJobSize).
js.filling = js.filling[:0]
if js.nextPrefix != nil {
js.putOverlapBuf(js.nextPrefix)
@@ -161,15 +161,23 @@ func (e *Encoder) Reset(w io.Writer) {
// as a new, independent stream.
// Options are applied on top of the existing options.
// Some options cannot be changed on reset and will return an error.
// If an option fails, the encoder is left unchanged.
func (e *Encoder) ResetWithOptions(w io.Writer, opts ...EOption) error {
e.o.resetOpt = true
defer func() { e.o.resetOpt = false }()
hadDict := e.o.dict != nil
next := e.o
next.resetOpt = true
for _, o := range opts {
if err := o(&e.o); err != nil {
if err := o(&next); err != nil {
return err
}
}
next.resetOpt = false
e.shutdownJobWorkers()
e.state.wg.Wait()
e.state.wWg.Wait()
hadDict := e.o.dict != nil
e.o = next
hasDict := e.o.dict != nil
if e.o.concurrentBlocks && hasDict {
e.o.concurrentBlocks = false