From de4ea4bbd1c5101bf0b572a4facd58875845f495 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 12 Oct 2015 21:56:44 +0200 Subject: ass: use a bitmap for checking duplicate events The loop in check_duplicate_event() essentially makes event processing with ass_process_chunk() O(n^2). Using a bitmap instead of a loop brings it back to O(n). This could be interpreted as an API change: since the event list is freely modifieable by the API user through ASS_Track public fields, libass can't know if the internal bitmap went out of sync with the public event list. We just redefine it so that calling ass_process_chunk() means the API user agrees not to manipulate the event list otherwise. --- libass/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libass/Makefile.am') diff --git a/libass/Makefile.am b/libass/Makefile.am index c0e4692..43e825d 100644 --- a/libass/Makefile.am +++ b/libass/Makefile.am @@ -3,7 +3,7 @@ AM_CFLAGS = -std=gnu99 -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter \ -Wpointer-arith -Wredundant-decls -D_GNU_SOURCE LIBASS_LT_CURRENT = 7 -LIBASS_LT_REVISION = 0 +LIBASS_LT_REVISION = 1 LIBASS_LT_AGE = 2 yasm_verbose = $(yasm_verbose_$(V)) -- cgit v1.2.3