Skip to content

Commit fa4b80b

Browse files
committed
earlier quit of dzsave on kill
We were only testing "killed" once for each strip of tiles. Check on each tile as well to make set_kill() faster. see kleisauke/net-vips#179
1 parent 907d17c commit fa4b80b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
- fix 8 bit pallete PNG save [lovell]
44
- fix null string in buffer print [pclewis]
55
- revise caching of seq mode loaders [jcupitt]
6+
- reduce latency on dzsave kill [kleisauke]
67

78
24/7/22 started 8.13.1
89
- fix im7 feature detection in meson

libvips/foreign/dzsave.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1828,6 +1828,12 @@ strip_work( VipsThreadState *state, void *a )
18281828
printf( "strip_work\n" );
18291829
#endif /*DEBUG_VERBOSE*/
18301830

1831+
/* killed is checked by sink_disc, but that's only once per strip, and
1832+
* they can be huge. Check per output tile as well.
1833+
*/
1834+
if( vips_image_iskilled( save->in ) )
1835+
return( -1 );
1836+
18311837
/* If we are centering we may be outside the real pixels. Skip in
18321838
* this case, and the viewer will display blank.png for us.
18331839
*/

0 commit comments

Comments
 (0)