Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

less aggressive finalize_node? #183

Open
daviehh opened this issue Apr 22, 2023 · 0 comments
Open

less aggressive finalize_node? #183

daviehh opened this issue Apr 22, 2023 · 0 comments

Comments

@daviehh
Copy link

daviehh commented Apr 22, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant