-
Notifications
You must be signed in to change notification settings - Fork 4
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
Addition of unsafe calls #10
Comments
What invariants do |
Also, when you say "massive" are we talking 10% or 10x? I think it's a good idea even if it's only 1%, but curious for my own knowledge. |
It'll be very dependent on the XML you're running over but for my case I'm seeing
I think the basic guidance for adding This post and this github issue give a quick overview of where there can be complications but I don't think there are any such issues here. I'll send over a pull request. |
My guess is we should add unsafe on:
But not:
What do you think? |
I agree. Although I suspect
won't see much benefit as they're only called once per document and so the overheads of |
Yep, sounds right. |
Fix #10: Import common FFI calls as unsafe
Thanks! I'll make a release tonight. |
Released as 0.3.2. Thanks once again! |
When processing a large XML document with many
attributeBy
andchildren
calls I see a massive speed improvement if I import the FFI calls asunsafe
.I don't know if these changes would want to be made directly to the existing FFI imports or if
unsafe
variants should be introduced but it would be a useful addition to the library.The text was updated successfully, but these errors were encountered: