File tree Expand file tree Collapse file tree
src/parsers/manifest/dash/wasm-parser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ mod utils;
1010
1111pub use errors:: { ParsingError , Result } ;
1212
13+ const READER_CAPACITY : usize = 32 * 1024 ;
14+
1315use events:: * ;
1416use processor:: MPDProcessor ;
1517use reader:: MPDReader ;
@@ -80,7 +82,7 @@ extern "C" {
8082
8183#[ no_mangle]
8284pub extern "C" fn parse ( ) {
83- let buf_read = BufReader :: new ( MPDReader { } ) ;
85+ let buf_read = BufReader :: with_capacity ( READER_CAPACITY , MPDReader { } ) ;
8486 let mut processor = MPDProcessor :: new ( buf_read) ;
8587 processor. process_tags ( ) ;
8688}
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ import ParsersStack from "./parsers_stack.ts";
3636import type { AttributeName , TagName } from "./types.ts" ;
3737import { CustomEventType } from "./types.ts" ;
3838
39- const MAX_READ_SIZE = 15e3 ;
39+ const MAX_READ_SIZE = 32 * 1024 ;
4040
4141export default class DashWasmParser {
4242 /**
You can’t perform that action at this time.
0 commit comments