-
Notifications
You must be signed in to change notification settings - Fork 13
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
is_item can be costly #59
Comments
I remember a discussion about imports inside functions being expensive. Let's see if #60 helps in that regard. |
I just realized this is actually possible at the moment, by modifying the |
Indeed, they are currently opt-out. Making them opt-in would mean making |
Released v0.5.0 to get advantage of the performance improvements. Let's keep this issue open to investigate about further improvements. |
See scrapy/itemloaders#50
While that issue can be addressed in a different way, I am thinking that we should make some work to minimize the CPU cost of this function.
I am actually starting to consider making different item types opt-in; i.e. instead of having all supported item types enabled by default, requiring users to enable them for them to work.
I am just thinking out loud, though. I am just worried about the CPU-consumption of this function going forward, seeing as it is already able to cause a 50% additional CPU usage for a process when overused.
The text was updated successfully, but these errors were encountered: