Skip to content
Snippets Groups Projects
Commit 33565ff1 authored by pompolic's avatar pompolic
Browse files

Disable debug code

parent 0e13f6f2
No related branches found
No related tags found
No related merge requests found
...@@ -142,8 +142,8 @@ class TopLevelParse: ...@@ -142,8 +142,8 @@ class TopLevelParse:
# This is probably the slowest part of the code, or maybe the overhead adds up over many calls to h_arena_malloc_raw() # This is probably the slowest part of the code, or maybe the overhead adds up over many calls to h_arena_malloc_raw()
if parser_obj is not None: if parser_obj is not None:
# Caveat: parser_stack is assumed not to be None if we could get a parser_obj # Caveat: parser_stack is assumed not to be None if we could get a parser_obj
if parser_obj.name == "ws": #if parser_obj.name == "ws":
print("breakpoint is adding", alloc_size, "bytes to ws") # DEBUG # print("breakpoint is adding", alloc_size, "bytes to ws") # DEBUG
parser_obj.add_mem_use(int(parser_stack.arena), alloc_size) parser_obj.add_mem_use(int(parser_stack.arena), alloc_size)
elif parser_stack is not None: elif parser_stack is not None:
#print("Allocation of " + str(alloc_size) + " bytes without a parser on the stack. (Happens before first call perform_lowlevel_parse to or after return from that call)") #print("Allocation of " + str(alloc_size) + " bytes without a parser on the stack. (Happens before first call perform_lowlevel_parse to or after return from that call)")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment