Giter Club home page Giter Club logo

Comments (4)

maitray16 avatar maitray16 commented on June 5, 2024 1

That's great and thanks for responding so quickly.
Yeah with two versions it should be good for folks who want to use Python2.7.
Let me know if you need help with testing.

from ioc-finder.

maitray16 avatar maitray16 commented on June 5, 2024

Hey, @fhightower are there any plans to do this?. Was looking into how to speed up the parsing portion.

from ioc-finder.

fhightower avatar fhightower commented on June 5, 2024

Yes, I'll start working on this today and hope to have a solid, working version in a couple of weeks.

Implementation details

As far as implementation details are concerned (this is more for my own thoughts than for anyone else), I'm planning on using asyncio. This is pretty easy (I've done similar things before); the only downside is that we will lose python2.7 support (which doesn't have much time remaining anyway: https://pythonclock.org/).

This change will be a major version (v2.x.x). Version 1.x of ioc-finder will be compatible with python2.x+ . Version 2.x of ioc-finder will be comptabile with python3.4+ .

from ioc-finder.

fhightower avatar fhightower commented on June 5, 2024

I just shipped version 2.0.0 to pypi which uses https://docs.python.org/3.7/library/multiprocessing.html to run many of the parsing operations concurrently. Let me know if you have any questions!

Implementation Details (or: Lessons Learned)

I had originally planned on using asyncio. I converted the library to use asyncio and it actually made it slower. After doing some research, I found this article which was very helpful: https://realpython.com/python-concurrency/. Basically, a program can run slowly because of I/O latency or because of CPU usage. asyncio is good for solutions involving I/O latency and multiprocessing is good when CPU usage is the limiting factor.

For this library (ioc-finder), the limitation is the CPU usage, so I went with multiprocessing.

from ioc-finder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.