JuliaIO / EzXML.jl

XML/HTML handling tools for primates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

less aggressive finalize_node?

daviehh opened this issue · comments

When reading a large xml file, quitting julia may take a long time due to finalize_node

Example: working with the Japanese dictionary which is encoded in a xml file here, choose the JMdict_e.gz file and unzip (direct link to file: http://ftp.edrdg.org/pub/Nihongo/JMdict_e.gz), and read it with

using EzXML
doc = readxml("JMdict_e")

then press ctrl-d to quit julia, julia would appear to freezing/busy and force quit with sigint shows it's running the finalizer

Force throwing a SIGINT
error in running finalizer: InterruptException()
traverse_tree at /Users/david/.julia/packages/EzXML/ZNwhK/src/node.jl:596
finalize_node at /Users/david/.julia/packages/EzXML/ZNwhK/src/node.jl:372

reading from the devnotes, for read-only access upon quitting julia maybe there's no need to automatically run the finalize part?