Code Monkey home page Code Monkey logo

Comments (3)

Zygo avatar Zygo commented on June 1, 2024

The default buffer size (which was also the only buffer size ever used) for SEARCH_V2 was 1MB. That's insanely large since we never ask for more than a few thousand items--and even if we did want more, they'd be out of date by the time we used them.

I'll add some instrumentation later to get closer to the right buffer size; however, you should see an improvement just by changing the default from 1MB to 16K. See the commit I just pushed for details.

from bees.

Zygo avatar Zygo commented on June 1, 2024

OK so we didn't usually need a meg but in some cases we did use over 512K.

I removed the initializer in the resize call which should get rid of the memset time.

from bees.

PeeJay avatar PeeJay commented on June 1, 2024

Seems much better now, sensible things like kernel calls, memcmp or crc64 are taking all the cpu time.

from bees.

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.