Coder Social home page Coder Social logo

Benchmark symbol indexer about metals HOT 2 CLOSED

scalameta avatar scalameta commented on September 17, 2024
Benchmark symbol indexer

from metals.

Comments (2)

ShaneDelmore avatar ShaneDelmore commented on September 17, 2024

For a very large code base I don't believe in memory indexes are going to hold up. I did some testing today on tens of thousands of semanticdbs and found that scaling per 10k semanticdb documents was roughly:

To load semanticdbs that have been previously calculated:
1 minute to load
1.5GB RAM to load
1GB RAM used after garbage collection with jvm string deduplication enabled
4s added to garbage collection time per 10k semantic documents indexed

Without having at least a 1.5x more heap available than will be eventually needed load time went through the roof, on one test after half an hour I just gave up. Adding more heap (over 10GB) got it down below 10 minutes again.

For small to medium size projects the in memory solution may work out just fine but for very large code bases it is not going to work.

from metals.

olafurpg avatar olafurpg commented on September 17, 2024

Fixed in #332. Numbers from my machine are listed here https://github.com/scalameta/metals/blob/master/metals-bench/readme.md

At least the build has benchmarking infrastructure and new features will be benchmarked before getting merged to ensure that performance is good even for large code bases.

from metals.

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.